]> granicus.if.org Git - sudo/commitdiff
now declare strdup as extern
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Oct 1993 01:48:53 +0000 (01:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Oct 1993 01:48:53 +0000 (01:48 +0000)
find_path.c
sudo.c

index b5d109425a9c16ce8ec0eecdd2ec41e5a6d52262..a23b2b0c9cf816c634c6cf3b011a6b12a5a57a59 100644 (file)
@@ -61,6 +61,9 @@ extern char *getcwd();
 #else
 extern char *getwd();
 #endif
+#ifndef NEED_STRDUP
+extern char *strdup();
+#endif
 
 
 /*******************************************************************
diff --git a/sudo.c b/sudo.c
index 2952a374816b8468b9d795308dd767c74628e208..9f9ae7a18cc8bc064b8fd91c395ade3b4751a53a 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -55,6 +55,9 @@
 #include <sys/param.h>
 #include "sudo.h"
 extern char *malloc();
+#ifndef NEED_STRDUP
+extern char *strdup();
+#endif
 
 int Argc;
 char **Argv;