poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
[gnulib.git] / modules / poll-h
1 Description:
2 A POSIX-like <poll.h>.
3
4 Files:
5 lib/poll.in.h
6 m4/poll_h.m4
7
8 Depends-on:
9 c++defs
10 extensions
11 warn-on-use
12
13 configure.ac:
14 gl_POLL_H
15
16 Makefile.am:
17 BUILT_SOURCES += $(POLL_H)
18
19 # We need the following in order to create <poll.h> when the system
20 # doesn't have one.
21 poll.h: poll.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
22         $(AM_V_GEN)rm -f $@-t $@ && \
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''GNULIB_POLL''@|$(GNULIB_POLL)|g' \
25               -e 's|@''HAVE_POLL''@|$(HAVE_POLL)|g' \
26               -e 's|@''REPLACE_POLL''@|$(REPLACE_POLL)|g' \
27               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
28               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
29               < $(srcdir)/poll.in.h; \
30         } > $@-t && \
31         mv -f $@-t $@
32 MOSTLYCLEANFILES += poll.h poll.h-t
33
34 Include:
35 <poll.h>
36
37 License:
38 LGPLv2+
39
40 Maintainer:
41 Paolo Bonzini, Bruno Haible