This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Fix for PR libc/1553
- To: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- Subject: Fix for PR libc/1553
- From: Andreas Jaeger <aj at suse dot de>
- Date: 23 Jan 2000 19:08:18 +0100
- Cc: David Madore <david dot madore at ens dot fr>
Ulrich, please apply the appended patch for glibc 2.1.3 and 2.2.
Thanks,
Andreas
2000-01-23 Andreas Jaeger <aj@suse.de>
* string/bits/string2.h: Fix macro: check for __USE_GNU not
__GNU_SOURCE.
Reported by David Madore <david.madore@ens.fr>, closes PR libc/1553.
============================================================
Index: string/bits/string2.h
--- string/bits/string2.h 2000/01/03 16:58:39 1.46
+++ string/bits/string2.h 2000/01/23 18:08:10
@@ -1225,7 +1225,7 @@
__retval; })) \
: __strndup ((s), (n))))
-# ifdef __GNU_SOURCE
+# ifdef __USE_GNU
# define strndup(s, n) __strndup ((s), (n))
# endif
# endif
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de