Commit 2c75701f64b5486e464fbcc5eaefe299938f73b0

Thomas de Grivel 2023-12-12T03:51:10

configure: config_have_stat_mtim

diff --git a/config.subr b/config.subr
index 4ab7c8a..e520590 100644
--- a/config.subr
+++ b/config.subr
@@ -66,14 +66,14 @@ config_have_stat_mtim() {
     OUT=".config_have_stat_mtim"
     OUT_C=".config_have_stat_mtim.c"
     echo "/* generated by configure */" > "$OUT_C"
-    echo "#include <stat.h>" >> "$OUT_C"
+    echo "#include <sys/stat.h>" >> "$OUT_C"
     echo "int main (void) {" >> "$OUT_C"
-    echo "  s_stat tmp;" >> "$OUT_C"
+    echo "  struct stat tmp;" >> "$OUT_C"
     echo "  tmp.st_mtim.tv_sec = 0;" >> "$OUT_C"
     echo "  tmp.st_mtim.tv_nsec = 0;" >> "$OUT_C"
     echo "  return 0;" >> "$OUT_C"
     echo "}" >> "$OUT_C"
-    if $LIBTOOL --tag CC --mode link ${CC} ${CPPFLAGS} ${CFLAGS} "$OUT_C" -o "$OUT" >/dev/null 2>&1; then
+    if $LIBTOOL --tag CC --mode link ${CC} ${CPPFLAGS} ${CFLAGS} "$OUT_C" -o "$OUT"; then
         echo "#define HAVE_STAT_MTIM 1" >> "${CONFIG_H}"
         HAVE_STAT_MTIM=true
     else