Avoid some "gcc -pedantic" warnings.
[gnulib.git] / modules / fcntl
1 Description:
2 Like <fcntl.h>, but with non-working flags defined to 0.
3
4 Files:
5 lib/fcntl.in.h
6 m4/fcntl_h.m4
7
8 Depends-on:
9 include_next
10 unistd
11
12 configure.ac:
13 gl_FCNTL_H
14
15 Makefile.am:
16 BUILT_SOURCES += $(FCNTL_H)
17
18 # We need the following in order to create <fcntl.h> when the system
19 # doesn't have one that works with the given compiler.
20 fcntl.h: fcntl.in.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
24               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
25               -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
26               -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
27               -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
28               < $(srcdir)/fcntl.in.h; \
29         } > $@-t
30         mv $@-t $@
31 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
32
33 Include:
34 #include <fcntl.h>
35
36 License:
37 LGPL
38
39 Maintainer:
40 all