check/include sys/select.h if present.

This commit is contained in:
Alexandre Snarskii
2017-06-12 20:11:39 +03:00
parent a77fba87d9
commit 99260c1267
4 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
untagged yet (2017-06-12)
- OpenBSD (and possibly others) need <sys/select.h>
0.1.35-rc (2017-30-05) 0.1.35-rc (2017-30-05)
- Nokia SR OS (formerly Alcatel-Lucent) support. Based on submission by - Nokia SR OS (formerly Alcatel-Lucent) support. Based on submission by
Michail Litvak. Michail Litvak.

View File

@@ -4,6 +4,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#if HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <assert.h> #include <assert.h>
#include <fcntl.h> #include <fcntl.h>

2
configure vendored
View File

@@ -3398,7 +3398,7 @@ fi
done done
for ac_header in sys/cdefs.h sys/queue.h sys/tree.h for ac_header in sys/cdefs.h sys/queue.h sys/tree.h sys/select.h
do : do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

View File

@@ -3,7 +3,7 @@ AC_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PROG_CC
AC_PROG_INSTALL AC_PROG_INSTALL
AC_CHECK_HEADERS([sys/cdefs.h sys/queue.h sys/tree.h]) AC_CHECK_HEADERS([sys/cdefs.h sys/queue.h sys/tree.h sys/select.h])
AC_MSG_CHECKING([for STAILQ_ interface in queue.h]) AC_MSG_CHECKING([for STAILQ_ interface in queue.h])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([