Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5821b77

Browse files
committed
Add configure tests for poll() (SF patch #100852)
1 parent 65f39ad commit 5821b77

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

config.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@
404404
/* Define if you have the plock function. */
405405
#undef HAVE_PLOCK
406406

407+
/* Define if you have the poll function. */
408+
#undef HAVE_POLL
409+
407410
/* Define if you have the pthread_init function. */
408411
#undef HAVE_PTHREAD_INIT
409412

@@ -536,6 +539,9 @@
536539
/* Define if you have the <ndir.h> header file. */
537540
#undef HAVE_NDIR_H
538541

542+
/* Define if you have the <poll.h> header file. */
543+
#undef HAVE_POLL_H
544+
539545
/* Define if you have the <pthread.h> header file. */
540546
#undef HAVE_PTHREAD_H
541547

configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22

3-
# From configure.in Revision: 1.146
3+
# From configure.in Revision: 1.147
44

55
# Guess values for system-dependent variables and create Makefiles.
66
# Generated automatically using autoconf version 2.13
@@ -1536,7 +1536,7 @@ EOF
15361536

15371537
fi
15381538

1539-
for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
1539+
for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
15401540
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
15411541
sys/audioio.h sys/file.h sys/lock.h \
15421542
sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
@@ -3798,7 +3798,7 @@ for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
37983798
flock fork fsync fdatasync fpathconf ftime ftruncate \
37993799
getgroups getlogin getpeername getpid getpwent getwd \
38003800
kill link lstat mkfifo mktime mremap \
3801-
nice pathconf pause plock pthread_init \
3801+
nice pathconf pause plock poll pthread_init \
38023802
putenv readlink \
38033803
select setegid seteuid setgid \
38043804
setlocale setregid setreuid setsid setpgid setuid setvbuf \

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ dnl AC_MSG_RESULT($cpp_type)
367367

368368
# checks for header files
369369
AC_HEADER_STDC
370-
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
370+
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
371371
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
372372
sys/audioio.h sys/file.h sys/lock.h \
373373
sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
@@ -872,7 +872,7 @@ AC_CHECK_FUNCS(alarm chown clock confstr ctermid ctermid_r execv \
872872
flock fork fsync fdatasync fpathconf ftime ftruncate \
873873
getgroups getlogin getpeername getpid getpwent getwd \
874874
kill link lstat mkfifo mktime mremap \
875-
nice pathconf pause plock pthread_init \
875+
nice pathconf pause plock poll pthread_init \
876876
putenv readlink \
877877
select setegid seteuid setgid \
878878
setlocale setregid setreuid setsid setpgid setuid setvbuf \

0 commit comments

Comments
 (0)