Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Mark in string.h: memccpy(3) and strdup(3) as _POSIX...



details:   https://anonhg.NetBSD.org/src/rev/e580d6dc8b95
branches:  trunk
changeset: 829964:e580d6dc8b95
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Feb 20 02:35:24 2018 +0000

description:
Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001

diffstat:

 include/string.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c2df61d1f252 -r e580d6dc8b95 include/string.h
--- a/include/string.h  Tue Feb 20 01:53:39 2018 +0000
+++ b/include/string.h  Tue Feb 20 02:35:24 2018 +0000
@@ -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 @@
 #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



Home | Main Index | Thread Index | Old Index