BSD/OS doesn't have a prototype for strlcpy() but has the function, so I
worked around that with a define;  patch attached and applied.

  Bruce Momjian   [EMAIL PROTECTED]

  + If your life is a hard drive, Christ can be your backup. +
Index: src/include/port.h
RCS file: /cvsroot/pgsql/src/include/port.h,v
retrieving revision 1.100
diff -c -c -r1.100 port.h
*** src/include/port.h	27 Sep 2006 16:29:46 -0000	1.100
--- src/include/port.h	30 Sep 2006 12:03:52 -0000
*** 332,338 ****
  extern char *strdup(const char *str);
! #ifndef HAVE_STRLCPY
  extern size_t strlcpy(char *dst, const char *src, size_t siz);
--- 332,338 ----
  extern char *strdup(const char *str);
! #if !defined(HAVE_STRLCPY) || defined(bsdi) /* bsdi doesn't have the prototype */
  extern size_t strlcpy(char *dst, const char *src, size_t siz);
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to