From: Todd C. Miller Date: Mon, 13 Sep 2010 14:40:37 +0000 (-0400) Subject: Include memory.h on systems that need it. X-Git-Tag: SUDO_1_7_5~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85696ecf1c4d4e46af9c91461d8d301a4c100966;p=sudo Include memory.h on systems that need it. --HG-- branch : 1.7 --- diff --git a/alloc.c b/alloc.c index 8e6a7e262..b0b4b6cff 100644 --- a/alloc.c +++ b/alloc.c @@ -33,6 +33,9 @@ # endif #endif /* STDC_HEADERS */ #ifdef HAVE_STRING_H +# if defined(HAVE_MEMORY_H) && !defined(STDC_HEADERS) +# include +# endif # include #endif /* HAVE_STRING_H */ #ifdef HAVE_STRINGS_H diff --git a/lbuf.c b/lbuf.c index bd218da87..3b4bd410f 100644 --- a/lbuf.c +++ b/lbuf.c @@ -31,6 +31,9 @@ # endif #endif /* STDC_HEADERS */ #ifdef HAVE_STRING_H +# if defined(HAVE_MEMORY_H) && !defined(STDC_HEADERS) +# include +# endif # include #endif /* HAVE_STRING_H */ #ifdef HAVE_STRINGS_H