Don't declare strdup if it's defined as a macro.
authorJim Meyering <jim@meyering.net>
Sun, 10 May 1998 16:04:39 +0000 (16:04 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 10 May 1998 16:04:39 +0000 (16:04 +0000)
Reported by Lorne Baker.

lib/userspec.c

index e73bee9..dd1d88a 100644 (file)
@@ -85,7 +85,9 @@ struct group *getgrgid ();
 
 #define isdigit(c) ((c) >= '0' && (c) <= '9')
 
+#ifndef strdup
 char *strdup ();
+#endif
 
 /* Return nonzero if STR represents an unsigned decimal integer,
    otherwise return 0. */