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 9d968a0..180057c 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 ac2c8b8..8c4bbb4 100644 (file)
@@ -32,7 +32,9 @@
 #include <sys/types.h>
 
 char *malloc ();
+#ifndef strdup
 char *strdup ();
+#endif
 
 #ifndef DIRECTORY_SEPARATOR
 # define DIRECTORY_SEPARATOR '/'