]> granicus.if.org Git - sudo/commitdiff
now includes string.h for strdup() prototype
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Nov 1995 21:27:08 +0000 (21:27 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Nov 1995 21:27:08 +0000 (21:27 +0000)
getspwuid.c

index 905bd7dfaf6d63c626591217d6d1683f6df55658..d136df406dfec35a3e6af806621863dfc0f3d29c 100644 (file)
@@ -37,6 +37,12 @@ static char rcsid[] = "$Id$";
 #ifdef STDC_HEADERS
 #include <stdlib.h>
 #endif /* STDC_HEADERS */
+#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
+#include <malloc.h>   
+#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif /* HAVE_STRING_H */
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif /* HAVE_UNISTD_H */