Skip to content

Commit 8ddf16d

Browse files
committed
strlcpy is a macro under OS X 10.9
1 parent 91a779a commit 8ddf16d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

strlcpy.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp
3434
#include <sys/types.h>
3535
#include <string.h>
3636

37+
#ifdef strlcpy
38+
#undef strlcpy
39+
#endif
3740
/*
3841
* Copy src to string dst of size siz. At most siz-1 characters
3942
* will be copied. Always NUL terminates (unless siz == 0).

0 commit comments

Comments
 (0)