Make pointer decrementing code ANSI C compliant.
[gnulib.git] / modules / sys_stat
index 95ed32b..b8d8c62 100644 (file)
@@ -10,6 +10,7 @@ absolute-header
 
 configure.ac:
 gl_HEADER_SYS_STAT_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(SYS_STAT_H)
@@ -17,7 +18,7 @@ BUILT_SOURCES += $(SYS_STAT_H)
 # We need the following in order to create <sys/stat.h> when the system
 # has one that is incomplete.
 sys/stat.h: stat_.h
-       test -d sys || mkdir sys
+       @MKDIR_P@ sys
        rm -f $@-t $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \