Index: configure.in
===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.310
diff -u -b -B -p -r1.310 configure.in
--- configure.in	26 Nov 2002 12:57:16 -0000	1.310
+++ configure.in	26 Nov 2002 21:02:23 -0000
@@ -843,13 +843,16 @@ dnl ************************************
 dnl *** strlcpy/strlcat                  ***
 dnl ****************************************
 # Check for strlcpy
-AC_MSG_CHECKING(for strlcpy/strlcat)
-AC_TRY_LINK([#include <stdlib.h>
-#include <string.h>], [
-char *p = malloc(10);
-(void) strlcpy(p, "hi", 10);
-(void) strlcat(p, "bye", 10);
-], glib_ok=yes, glib_ok=no)
+AC_MSG_CHECKING(for OpenBSD strlcpy/strlcat)
+AC_TRY_RUN([
+#include <string.h>
+int main() {
+  char *p = malloc (10);
+  (void) strlcpy (p, "hi", 10);
+  if (strlcat (p, "bye", 0) != 3) 
+    exit (1);
+  return 0;
+}], glib_ok=yes, glib_ok=no)
 AC_MSG_RESULT($glib_ok)
 if test "$glib_ok" = "yes"; then
     AC_DEFINE(HAVE_STRLCPY,1,[Have functions strlcpy and strlcat])
