]> granicus.if.org Git - sudo/commitdiff
now uses STD_HEADERS macor for ansi
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Nov 1993 00:14:19 +0000 (00:14 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Nov 1993 00:14:19 +0000 (00:14 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index d7339f8314cd7d4302bc96f3e83f933eb30e526d..b15864a7826a64c165b6381832c75d794e934a66 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -57,19 +57,24 @@ static char rcsid[] = "$Id$";
 #define MAIN
 
 #include <stdio.h>
-#if defined(hpux) || defined(linux)
+#ifdef STD_HEADERS
+#include <stdlib.h>
+#ifndef NeXT
 #include <unistd.h>
-#endif
+#endif /* !NeXT */
+#endif /* STD_HEADERS */
 #include <string.h>
 #include <strings.h>
 #include <pwd.h>
 #include <netdb.h>
 #include <sys/param.h>
 #include "sudo.h"
+#ifndef STD_HEADERS
 extern char *malloc();
 #ifndef NEED_STRDUP
 extern char *strdup();
 #endif
+#endif
 
 int Argc;
 char **Argv;