summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-13 10:31:48 +0000
committerJim Meyering <jim@meyering.net>2003-09-13 10:31:48 +0000
commita92aadf8926357775474cafc1ef805218158e8e0 (patch)
treed5f16e20908a1a7c9ab094af098bfdf4a811bede /m4
parent745c63c70cb1eafb68101ebe79689877a3bf8fc1 (diff)
downloadcoreutils-a92aadf8926357775474cafc1ef805218158e8e0.tar.xz
(jm_CHECK_DECLS): Include <string.h>, <stdlib.h> unconditionally.
Diffstat (limited to 'm4')
-rw-r--r--m4/check-decl.m418
1 files changed, 4 insertions, 14 deletions
diff --git a/m4/check-decl.m4 b/m4/check-decl.m4
index b374705a0..4a0fda061 100644
--- a/m4/check-decl.m4
+++ b/m4/check-decl.m4
@@ -1,4 +1,4 @@
-#serial 18
+#serial 19
dnl This is just a wrapper function to encapsulate this kludge.
dnl Putting it in a separate file like this helps share it between
@@ -9,19 +9,9 @@ AC_DEFUN([jm_CHECK_DECLS],
AC_REQUIRE([AC_HEADER_TIME])
headers='
#include <stdio.h>
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#else
-# if HAVE_STRINGS_H
-# include <strings.h>
-# endif
-#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <string.h>
+#include <stdlib.h>
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif