From: Todd C. Miller Date: Thu, 15 Jul 1999 15:21:25 +0000 (+0000) Subject: include malloc.h if no stdlib.h X-Git-Tag: SUDO_1_6_0~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17f22b06cda7cb76d4e0f6891d565f6fbc3380e4;p=sudo include malloc.h if no stdlib.h --- diff --git a/snprintf.c b/snprintf.c index dd44495e8..b05004409 100644 --- a/snprintf.c +++ b/snprintf.c @@ -51,6 +51,9 @@ #ifdef HAVE_STRINGS_H # include #endif /* HAVE_STRINGS_H */ +#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS) +# include +#endif /* HAVE_MALLOC_H && !STDC_HEADERS */ #include #ifdef __STDC__ # include