Declare strdup only if it's not defined.
authorJim Meyering <jim@meyering.net>
Sat, 29 Apr 2000 09:25:09 +0000 (09:25 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 Apr 2000 09:25:09 +0000 (09:25 +0000)
lib/canon-host.c
lib/path-concat.c

index 9d968a0359bf98f2dcc7dbaa0575ec930f86f971..180057c3fff08ac1af70aa25651026ecd4831c8e 100644 (file)
@@ -43,7 +43,9 @@
 # include <arpa/inet.h>
 #endif
 
+#ifndef strdup
 char *strdup ();
+#endif
 void free ();
 
 /* Returns the canonical hostname associated with HOST (allocated in a static
index ac2c8b8d512563e3299eb65f1ba698238f2e8bf6..8c4bbb4e8b2e73c3a5b5d16df79ffea1dc1fbda2 100644 (file)
@@ -32,7 +32,9 @@
 #include <sys/types.h>
 
 char *malloc ();
+#ifndef strdup
 char *strdup ();
+#endif
 
 #ifndef DIRECTORY_SEPARATOR
 # define DIRECTORY_SEPARATOR '/'