From: Jim Meyering Date: Sat, 29 Apr 2000 09:25:09 +0000 (+0000) Subject: Declare strdup only if it's not defined. X-Git-Tag: v4.5.1~5055 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf251ff75bd5d776be48d605884a1cf5c577a480;p=thirdparty%2Fcoreutils.git Declare strdup only if it's not defined. --- diff --git a/lib/canon-host.c b/lib/canon-host.c index 9d968a0359..180057c3ff 100644 --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -43,7 +43,9 @@ # include #endif +#ifndef strdup char *strdup (); +#endif void free (); /* Returns the canonical hostname associated with HOST (allocated in a static diff --git a/lib/path-concat.c b/lib/path-concat.c index ac2c8b8d51..8c4bbb4e8b 100644 --- a/lib/path-concat.c +++ b/lib/path-concat.c @@ -32,7 +32,9 @@ #include char *malloc (); +#ifndef strdup char *strdup (); +#endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/'