summaryrefslogtreecommitdiff
path: root/lib/poll.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-09-29 01:00:17 +0200
committerBruno Haible <bruno@clisp.org>2010-09-29 01:00:17 +0200
commit11f1d3a976a737eb6ca30cf89e8b47c85bfe3d47 (patch)
tree2750fb1776792f916f4dcdb9ac73d360bca0764a /lib/poll.c
parent532d19ed682a2fcc68f97fc63c63e0a514f851d5 (diff)
downloadgnulib-11f1d3a976a737eb6ca30cf89e8b47c85bfe3d47.tar.gz
New module 'poll-h'.
* lib/poll.in.h: Include c++defs.h and warn-on-use.h. (poll): Use modern idiom. * modules/poll-h: New file. * modules/poll (Files): Remove lib/poll.in.h. (Depends-on): Add poll-h. (configure.ac): Invoke gl_POLL_MODULE_INDICATOR. (Makefile.am): Move code for generation of poll.h to modules/poll-h. * m4/poll_h.m4: New file. * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL and invoke gl_REPLACE_POLL_H. * lib/poll.c: Use common idiom. * tests/test-poll.c: Likewise. * doc/posix-headers/poll.texi: Mention the poll-h module. Suggested by Eric Blake.
Diffstat (limited to 'lib/poll.c')
-rw-r--r--lib/poll.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/poll.c b/lib/poll.c
index 7c52cb6a26..a001c199a8 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -28,7 +28,10 @@
#include <alloca.h>
#include <sys/types.h>
-#include "poll.h"
+
+/* Specification. */
+#include <poll.h>
+
#include <errno.h>
#include <limits.h>
#include <assert.h>