Skip to content

Commit a9c7c5c

Browse files
committed
BSD/OS doesn't have a prototype for strlcpy() but has the function, so
work around that with defines.
1 parent 6bb9fc9 commit a9c7c5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.100 2006/09/27 16:29:46 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.101 2006/09/30 12:06:42 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -332,7 +332,7 @@ extern int inet_aton(const char *cp, struct in_addr * addr);
332332
extern char *strdup(const char *str);
333333
#endif
334334

335-
#ifndef HAVE_STRLCPY
335+
#if !defined(HAVE_STRLCPY) || defined(bsdi) /* bsdi doesn't have the prototype */
336336
extern size_t strlcpy(char *dst, const char *src, size_t siz);
337337
#endif
338338

0 commit comments

Comments
 (0)