changeset 1505:a9c403a6aa3b

stpcpy is posix-2008, requiring _GNU_DAMMIT to enable it is a bug. http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html
author Rob Landley <rob@landley.net>
date Fri, 16 Mar 2012 06:56:47 -0500
parents eb4d0124767a
children 9c5f0af9bea7
files sources/patches/uClibc-stpcpy.patch
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/uClibc-stpcpy.patch	Fri Mar 16 06:56:47 2012 -0500
@@ -0,0 +1,21 @@
+stpcpy is from posix-2008, not the gnu/dammit project.  See:
+
+  http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html
+
+Needing to #define __ALL_HAIL_RICHARD_STALLMAN in order to get a posix
+function is just _sad_.
+
+diff --git a/include/string.h b/include/string.h
+index f11a726..73534cb 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -416,9 +416,7 @@ extern char *strsep (char **__restrict __stringp,
+ 		     __const char *__restrict __delim)
+      __THROW __nonnull ((1, 2));
+ libc_hidden_proto(strsep)
+-#endif
+ 
+-#ifdef	__USE_GNU
+ /* Compare S1 and S2 as strings holding name & indices/version numbers.  */
+ extern int strverscmp (__const char *__s1, __const char *__s2)
+      __THROW __attribute_pure__ __nonnull ((1, 2));