aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-09-30 12:06:42 +0000
committerBruce Momjian <bruce@momjian.us>2006-09-30 12:06:42 +0000
commita9c7c5c240ddc95ac3c696b39c4a8472efc5d450 (patch)
tree057911718f8f46b598696afa2a07d77d166097e9 /src
parent6bb9fc9feef05ea7c4e2ead39096958aba0d89e5 (diff)
downloadpostgresql-a9c7c5c240ddc95ac3c696b39c4a8472efc5d450.tar.gz
postgresql-a9c7c5c240ddc95ac3c696b39c4a8472efc5d450.zip
BSD/OS doesn't have a prototype for strlcpy() but has the function, so
work around that with defines.
Diffstat (limited to 'src')
-rw-r--r--src/include/port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 060981c850f..9f79a300b15 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/port.h,v 1.100 2006/09/27 16:29:46 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.101 2006/09/30 12:06:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -332,7 +332,7 @@ extern int inet_aton(const char *cp, struct in_addr * addr);
extern char *strdup(const char *str);
#endif
-#ifndef HAVE_STRLCPY
+#if !defined(HAVE_STRLCPY) || defined(bsdi) /* bsdi doesn't have the prototype */
extern size_t strlcpy(char *dst, const char *src, size_t siz);
#endif