Declare strdup only if it's not defined.

This commit is contained in:
Jim Meyering 2000-04-29 09:25:09 +00:00
parent f79c0f977e
commit cf251ff75b
2 changed files with 4 additions and 0 deletions

View 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

View File

@ -32,7 +32,9 @@
#include <sys/types.h>
char *malloc ();
#ifndef strdup
char *strdup ();
#endif
#ifndef DIRECTORY_SEPARATOR
# define DIRECTORY_SEPARATOR '/'