Avoid some "gcc -pedantic" warnings.
[gnulib.git] / modules / sys_stat
1 Description:
2 A <sys/stat.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_stat.in.h
6 m4/sys_stat_h.m4
7
8 Depends-on:
9 include_next
10
11 configure.ac:
12 gl_HEADER_SYS_STAT_H
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += $(SYS_STAT_H)
17
18 # We need the following in order to create <sys/stat.h> when the system
19 # has one that is incomplete.
20 sys/stat.h: sys_stat.in.h
21         @MKDIR_P@ sys
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
27               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
28               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
29               < $(srcdir)/sys_stat.in.h; \
30         } > $@-t
31         mv $@-t $@
32 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
33 MOSTLYCLEANDIRS += sys
34
35 Include:
36 #include <sys/stat.h>
37
38 License:
39 LGPLv2+
40
41 Maintainer:
42 all