(jm_CHECK_ALL_TYPES): Include <sys/stat.h>
authorJim Meyering <jim@meyering.net>
Sun, 2 Apr 2000 21:00:24 +0000 (21:00 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 2 Apr 2000 21:00:24 +0000 (21:00 +0000)
before checking struct stat.st_blksize, so that
HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.

m4/jm-macros.m4

index a991628ee46d066a1982b731d71063a68d1bba9e..2ed57dcae2f4cc0539ccfa07ae34656e2a2aa21f 100644 (file)
@@ -1,4 +1,4 @@
-#serial 13
+#serial 14
 
 dnl Misc type-related macros for fileutils, sh-utils, textutils.
 
@@ -204,7 +204,9 @@ AC_DEFUN(jm_CHECK_ALL_TYPES,
 
   AC_REQUIRE([AC_HEADER_DIRENT])
   AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_MEMBERS((struct stat.st_blksize))
+  AC_CHECK_MEMBERS((struct stat.st_blksize),,,[$ac_includes_default
+#include <sys/stat.h>
+  ])
   AC_REQUIRE([AC_STRUCT_ST_BLOCKS])
 
   AC_REQUIRE([AC_STRUCT_TM])