New module 'poll-h'.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:00:17 +0000 (01:00 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:00:17 +0000 (01:00 +0200)
commit11f1d3a976a737eb6ca30cf89e8b47c85bfe3d47
tree2750fb1776792f916f4dcdb9ac73d360bca0764a
parent532d19ed682a2fcc68f97fc63c63e0a514f851d5
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.
ChangeLog
doc/posix-headers/poll.texi
lib/poll.c
lib/poll.in.h
m4/poll.m4
m4/poll_h.m4 [new file with mode: 0644]
modules/poll
modules/poll-h [new file with mode: 0644]
tests/test-poll.c