summaryrefslogtreecommitdiff
path: root/lib/canon-host.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-29 09:25:09 +0000
committerJim Meyering <jim@meyering.net>2000-04-29 09:25:09 +0000
commitcf251ff75bd5d776be48d605884a1cf5c577a480 (patch)
tree6311284b055976d064cdb3bfe662c77227e28e1c /lib/canon-host.c
parentf79c0f977ef67685fd6468295d0b39044dddbd43 (diff)
downloadcoreutils-cf251ff75bd5d776be48d605884a1cf5c577a480.tar.xz
Declare strdup only if it's not defined.
Diffstat (limited to 'lib/canon-host.c')
-rw-r--r--lib/canon-host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/canon-host.c b/lib/canon-host.c
index 9d968a035..180057c3f 100644
--- 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