mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-06 17:18:02 +02:00
Check headers before testing for fds_bits access method (bug #8442)
HP-UX doesn't have sys/select.h, so make sure we don't overzealously include headers when we try to find out how to use fds_bits.
This commit is contained in:
parent
68e841fb4b
commit
8be48ca399
1 changed files with 24 additions and 2 deletions
26
configure.ac
26
configure.ac
|
|
@ -32,6 +32,8 @@ AC_ARG_ENABLE(wide-prototypes,
|
|||
[WIDEPROTO=$enableval], [WIDEPROTO=auto])
|
||||
|
||||
|
||||
AC_CHECK_HEADERS([sys/select.h sys/param.h sys/types.h sys/time.h])
|
||||
|
||||
# Handle Xpoll.h.in
|
||||
fds_bits_found=false;
|
||||
|
||||
|
|
@ -42,8 +44,18 @@ if test "x$fds_bits_found" = xfalse ; then
|
|||
USE_FDS_BITS="fds_bits"
|
||||
],,
|
||||
[
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
])
|
||||
fi
|
||||
|
||||
|
|
@ -54,8 +66,18 @@ if test "x$fds_bits_found" = xfalse ; then
|
|||
USE_FDS_BITS="__fds_bits"
|
||||
],,
|
||||
[
|
||||
#include <sys/types.h>
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
])
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue