* lib/fcntl_.h: Prefer #include_next <foo.h> to #include
[pspp] / modules / fcntl
1 Description:
2 Like <fcntl.h>, but with non-working flags defined to 0.
3
4 Files:
5 lib/fcntl_.h
6 m4/fcntl_h.m4
7
8 Depends-on:
9 absolute-header
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_.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \
24               -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
25               < $(srcdir)/fcntl_.h; \
26         } > $@-t
27         mv $@-t $@
28 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
29
30 Include:
31 #include <fcntl.h>
32
33 License:
34 LGPL
35
36 Maintainer:
37 all