poll-h: Create poll.h on all platforms.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:51:18 +0000 (01:51 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:51:18 +0000 (01:51 +0200)
commit55898ee1c7c12e63772c65e772577f10bb7adb31
treed9e67d9bd0af9ed66256cd4712f2b4a33a8e0801
parentbea1da6a318af6345db504c70ddb873c12501699
poll-h: Create poll.h on all platforms.

* lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
* m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
(gl_REPLACE_POLL_H): Don't set POLL_H.
(gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
* modules/poll-h (Depends-on): Add include_next.
(Makefile.am): Create poll.h unconditionally. Substitute also
HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
ChangeLog
lib/poll.in.h
m4/poll_h.m4
modules/poll-h