changeset 6679:41b90d084576

(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.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 04 Mar 2006 06:34:54 +0000
parents 4bd2178b8dab
children f1d47988a58b
files m4/poll.m4
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
   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.])