changeset 2446:76d2f97bde52

Declare strdup only if it's not defined.
author Jim Meyering <jim@meyering.net>
date Sat, 29 Apr 2000 09:25:09 +0000
parents 7423e10b60e8
children 9296ef0dc85d
files lib/canon-host.c lib/path-concat.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/canon-host.c
+++ b/lib/canon-host.c
@@ -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
--- a/lib/path-concat.c
+++ b/lib/path-concat.c
@@ -32,7 +32,9 @@
 #include <sys/types.h>
 
 char *malloc ();
+#ifndef strdup
 char *strdup ();
+#endif
 
 #ifndef DIRECTORY_SEPARATOR
 # define DIRECTORY_SEPARATOR '/'