Verified Commit fea80d03 authored by Jon Turney's avatar Jon Turney

Add autoconf checks for headers we include for FIONREAD

Add autoconf checks for the extra headers we include to define FIONREAD.
This needs sys/socket.h on Cygwin, and none of the alternatives on
Windows.
parent 87c77a1e
......@@ -139,7 +139,7 @@ fi
AC_MSG_RESULT($XLIB_LOADABLE_XCURSOR)
# Checks for header files.
AC_CHECK_HEADERS([sys/filio.h sys/select.h])
AC_CHECK_HEADERS([sys/filio.h sys/select.h sys/ioctl.h sys/socket.h])
# Checks for typedefs, structures, and compiler characteristics.
......
......@@ -52,6 +52,11 @@ from The Open Group.
#include <sys/filio.h>
#endif
/* Needed for FIONREAD on Cygwin */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
/* Needed for ioctl() on Solaris */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
......@@ -60,7 +65,9 @@ from The Open Group.
#ifdef XTHREADS
#include "locking.h"
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
/* these pointers get initialized by XInitThreads */
LockInfoPtr _Xglobal_lock = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment