Module Name: src
Committed By: kamil
Date: Tue Feb 20 02:35:24 UTC 2018
Modified Files:
src/include: string.h
Log Message:
Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/include/string.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/string.h
diff -u src/include/string.h:1.51 src/include/string.h:1.52
--- src/include/string.h:1.51 Wed Oct 12 20:01:22 2016
+++ src/include/string.h Tue Feb 20 02:35:24 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.51 2016/10/12 20:01:22 christos Exp $ */
+/* $NetBSD: string.h,v 1.52 2018/02/20 02:35:24 kamil Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -74,7 +74,8 @@ int strerror_r(int, char *, size_t);
#endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */
size_t strxfrm(char * __restrict, const char * __restrict, size_t);
-#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
+#if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \
+ defined(_NETBSD_SOURCE)
void *memccpy(void *, const void *, int, size_t);
char *strdup(const char *);
#endif