]> 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:53 +0000 (10:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 14:40:53 +0000 (10:40 -0400)
common/alloc.c
common/lbuf.c

index 01b241cffac66d71b41ef0d39701edd29e3443cb..b45f0fb05fc2d1da603bbab596804c43b38e18c4 100644 (file)
@@ -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
index 690bb227f2d3718896785d1a8b2496b669346cfa..b732f3fada116b62ee77e5c24219820ca42c8822 100644 (file)
@@ -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