Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9c7c5c

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

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 intinet_aton(const char *cp, struct in_addr * addr);
332332
externchar*strdup(constchar*str);
333333
#endif
334334

335-
#ifndefHAVE_STRLCPY
335+
#if !defined(HAVE_STRLCPY)|| defined(bsdi)/* bsdi doesn't have the prototype */
336336
externsize_tstrlcpy(char*dst,constchar*src,size_tsiz);
337337
#endif
338338

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp