summaryrefslogtreecommitdiff
path: root/m4/poll.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-03-04 06:34:54 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-03-04 06:34:54 +0000
commit8c43a81212224f3229ecb12f4b0200c4f569b94f (patch)
treebf43c4b9dd98053eaad0cba28d33bab7cb2bfb3b /m4/poll.m4
parent260b7105edbd40a2b7ab6321dccf03dedad2c6dc (diff)
downloadgnulib-8c43a81212224f3229ecb12f4b0200c4f569b94f.tar.gz
(gl_FUNC_POLL): If we deem poll(2) unacceptable, use
our replacement poll.h in any case, to avoid a differing declaration from a system header. Seen on AIX.
Diffstat (limited to 'm4/poll.m4')
-rw-r--r--m4/poll.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/poll.m4 b/m4/poll.m4
index aed57a0503..68c272a22f 100644
--- a/m4/poll.m4
+++ b/m4/poll.m4
@@ -1,5 +1,5 @@
-# poll.m4 serial 4
-dnl Copyright (c) 2003, 2005 Free Software Foundation, Inc.
+# poll.m4 serial 5
+dnl Copyright (c) 2003, 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -57,6 +57,7 @@ This is MacOSX
fi
if test $gl_cv_func_poll = no; then
+ POLL_H=poll.h # Avoid differing declaration from a system header.
AC_LIBOBJ(poll)
AC_DEFINE(poll, rpl_poll,
[Define to poll if the replacement function should be used.])