+2007-01-13 Ulrich Drepper <drepper@redhat.com>
+
+ * include/string.h: Only redefine strndupa if this is really for
+ libc code.
+
2007-01-12 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_gethst_r.c: Minor cleanups.
extern __typeof (strncasecmp_l) __strncasecmp_l;
/* Alternative version which doesn't pollute glibc's namespace. */
-#undef strndupa
-#define strndupa(s, n) \
+#ifndef NOT_IN_libc
+# undef strndupa
+# define strndupa(s, n) \
(__extension__ \
({ \
__const char *__old = (s); \
__new[__len] = '\0'; \
(char *) memcpy (__new, __old, __len); \
}))
+#endif
libc_hidden_proto (__mempcpy)
libc_hidden_proto (__stpcpy)