mbrlen: Fix cross-compilation guess for AIX.
[gnulib.git] / modules / poll
index 18a01dd..64c1de5 100644 (file)
@@ -3,30 +3,37 @@ poll() function: wait for some event on a set of file descriptors.
 
 Files:
 lib/poll.c
-lib/poll_.h
+lib/poll.in.h
 m4/poll.m4
 
 Depends-on:
+alloca
+select
+sys_select
+sys_time
+errno
 
 configure.ac:
 gl_FUNC_POLL
 
 Makefile.am:
 BUILT_SOURCES += $(POLL_H)
-EXTRA_DIST += poll_.h
 
 # We need the following in order to create <poll.h> when the system
 # doesn't have one.
-poll.h: poll_.h
-       cp $(srcdir)/poll_.h $@-t
-       mv $@-t $@
+poll.h: poll.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/poll.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
 MOSTLYCLEANFILES += poll.h poll.h-t
 
 Include:
-#include <poll.h>
+<poll.h>
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Paolo Bonzini  <bonzini@gnu.org>