Mercurial > hg > octave-lojdl > gnulib-hg
comparison m4/poll.m4 @ 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 | c0415917431f |
children | 427cd89c6d7b |
comparison
equal
deleted
inserted
replaced
6678:4bd2178b8dab | 6679:41b90d084576 |
---|---|
1 # poll.m4 serial 4 | 1 # poll.m4 serial 5 |
2 dnl Copyright (c) 2003, 2005 Free Software Foundation, Inc. | 2 dnl Copyright (c) 2003, 2005, 2006 Free Software Foundation, Inc. |
3 dnl This file is free software; the Free Software Foundation | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | 4 dnl gives unlimited permission to copy and/or distribute it, |
5 dnl with or without modifications, as long as this notice is preserved. | 5 dnl with or without modifications, as long as this notice is preserved. |
6 | 6 |
7 AC_DEFUN([gl_FUNC_POLL], | 7 AC_DEFUN([gl_FUNC_POLL], |
55 AC_DEFINE([HAVE_POLL], 1, | 55 AC_DEFINE([HAVE_POLL], 1, |
56 [Define to 1 if you have the 'poll' function and it works.]) | 56 [Define to 1 if you have the 'poll' function and it works.]) |
57 fi | 57 fi |
58 | 58 |
59 if test $gl_cv_func_poll = no; then | 59 if test $gl_cv_func_poll = no; then |
60 POLL_H=poll.h # Avoid differing declaration from a system header. | |
60 AC_LIBOBJ(poll) | 61 AC_LIBOBJ(poll) |
61 AC_DEFINE(poll, rpl_poll, | 62 AC_DEFINE(poll, rpl_poll, |
62 [Define to poll if the replacement function should be used.]) | 63 [Define to poll if the replacement function should be used.]) |
63 gl_PREREQ_POLL | 64 gl_PREREQ_POLL |
64 fi | 65 fi |