]> granicus.if.org Git - sudo/commitdiff
Include memory.h on systems that need it.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 14:40:37 +0000 (10:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 14:40:37 +0000 (10:40 -0400)
--HG--
branch : 1.7

alloc.c
lbuf.c

diff --git a/alloc.c b/alloc.c
index 8e6a7e2623af006a7d6e8d7ca226934d130777cc..b0b4b6cff537c1c2f276d46167ca2d8d84cbe345 100644 (file)
--- 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 <memory.h>
+# endif
 # include <string.h>
 #endif /* HAVE_STRING_H */
 #ifdef HAVE_STRINGS_H
diff --git a/lbuf.c b/lbuf.c
index bd218da873b32cc7ef68cce0245cf230659cff14..3b4bd410f0dd55144d14d71859bfb311a42f9bfc 100644 (file)
--- 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 <memory.h>
+# endif
 # include <string.h>
 #endif /* HAVE_STRING_H */
 #ifdef HAVE_STRINGS_H