From 949ed19da0421274da727b1c1eb4d66e69520f0c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Jun 2006 09:10:12 +0000 Subject: [PATCH] Apply this change from gnulib: 2006-05-30 Ralf Wildenhues Bruno Haible * strndup.c (strndup) [!_LIBC]: Don't undefine macro definition. --- lib/ChangeLog | 9 +++++++++ lib/strndup.c | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 42c19cb..a87c9a1 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,12 @@ +2006-06-10 Jim Meyering + + Apply this change from gnulib: + + 2006-05-30 Ralf Wildenhues + Bruno Haible + + * strndup.c (strndup) [!_LIBC]: Don't undefine macro definition. + 2006-06-04 Paul Eggert * regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun diff --git a/lib/strndup.c b/lib/strndup.c index 932a83e..2626373 100644 --- a/lib/strndup.c +++ b/lib/strndup.c @@ -36,7 +36,9 @@ #endif #undef __strndup -#undef strndup +#if _LIBC +# undef strndup +#endif #ifndef weak_alias # define __strndup strndup -- 2.7.4