summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-13 10:33:14 +0000
committerJim Meyering <jim@meyering.net>2003-09-13 10:33:14 +0000
commitee92795646213ef053073be6823eb5eb18fb3bf5 (patch)
tree7ccf65509f248b3f0d7936f5dcdf51e5e93d2924 /m4
parent60bed9c371d2e91ed63748c2052dc38330b79413 (diff)
downloadcoreutils-ee92795646213ef053073be6823eb5eb18fb3bf5.tar.xz
(GL_FUNC_READDIR): Don't check for string.h.
Diffstat (limited to 'm4')
-rw-r--r--m4/readdir.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/m4/readdir.m4 b/m4/readdir.m4
index 8a29e58bc..db645ecc5 100644
--- a/m4/readdir.m4
+++ b/m4/readdir.m4
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
dnl SunOS's readdir is broken in such a way that rm.c has to add extra code
dnl to test whether a NULL return value really means there are no more files
@@ -18,7 +18,6 @@ dnl Written by Jim Meyering.
AC_DEFUN([GL_FUNC_READDIR],
[dnl
AC_REQUIRE([AC_HEADER_DIRENT])
-AC_CHECK_HEADERS_ONCE(string.h)
AC_CACHE_CHECK([for working readdir], gl_cv_func_working_readdir,
[dnl
# Arrange for deletion of the temporary directory this test creates, in
@@ -28,9 +27,7 @@ AC_CACHE_CHECK([for working readdir], gl_cv_func_working_readdir,
AC_TRY_RUN(
[# include <stdio.h>
# include <sys/types.h>
-# if HAVE_STRING_H
-# include <string.h>
-# endif
+# include <string.h>
# ifdef HAVE_DIRENT_H
# include <dirent.h>