]> granicus.if.org Git - sudo/commitdiff
include malloc.h if no stdlib.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Jul 1999 15:21:25 +0000 (15:21 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Jul 1999 15:21:25 +0000 (15:21 +0000)
snprintf.c

index dd44495e88455b4b2620cb4f4ca6809caa60b0a8..b050044095282392f9ca9de0b23bd99c3b38332f 100644 (file)
@@ -51,6 +51,9 @@
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif /* HAVE_STRINGS_H */
+#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
+# include <malloc.h>
+#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
 #include <ctype.h>
 #ifdef __STDC__
 # include <stdarg.h>