Skip to content
Snippets Groups Projects
Commit 44894a5d authored by scjones's avatar scjones
Browse files

* sunos57-select.m4: Properly conditionalize the test program.

parent 1cb4db0e
No related branches found
No related tags found
No related merge requests found
2008-11-17 Larry Jones <lawrence.jones@siemens.com>
* sunos57-select.m4: Properly conditionalize the test program.
2008-11-13 Larry Jones <lawrence.jones@siemens.com> 2008-11-13 Larry Jones <lawrence.jones@siemens.com>
* sunos57-select.m4: Need <sys/time.h> for struct timeval. * sunos57-select.m4: Need <sys/time.h> for struct timeval.
......
...@@ -13,14 +13,25 @@ dnl function that works around the problem. ...@@ -13,14 +13,25 @@ dnl function that works around the problem.
AC_DEFUN([ccvs_FUNC_SELECT], AC_DEFUN([ccvs_FUNC_SELECT],
[ [
AC_REQUIRE([gl_HEADER_SYS_SELECT])
AC_REQUIRE([gl_HEADER_SYS_TIME_H]) AC_REQUIRE([gl_HEADER_SYS_TIME_H])
AC_CHECK_HEADERS([fcntl.h]) AC_CHECK_HEADERS([sys/types.h unistd.h fcntl.h])
AC_CACHE_CHECK([whether select hangs on /dev/null fd when timeout is NULL], AC_CACHE_CHECK([whether select hangs on /dev/null fd when timeout is NULL],
ccvs_cv_func_select_hang, ccvs_cv_func_select_hang,
[AC_RUN_IFELSE([AC_LANG_PROGRAM([[ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h> #include <stdio.h>
#include <sys/select.h> #ifdef HAVE_SYS_SELECT_H
#include <sys/time.h> # include <sys/select.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment