Work around broken AIX 5.1 strndup function.
[gnulib.git] / lib / strndup.c
index 932a83e..2626373 100644 (file)
@@ -36,7 +36,9 @@
 #endif
 
 #undef __strndup
-#undef strndup
+#if _LIBC
+# undef strndup
+#endif
 
 #ifndef weak_alias
 # define __strndup strndup