summaryrefslogtreecommitdiff
path: root/src/XlibInt.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2019-03-13 13:12:20 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2019-04-30 15:37:52 +0100
commitfea80d03c381a4de379863c0d41f6d4c00f15e1e (patch)
tree51e23a5cd6b5f167d90470edf362a3a907e29edd /src/XlibInt.c
parent87c77a1e6d7034536e9d25ce24a667ebf53486a7 (diff)
downloadxorg-lib-libX11-fea80d03c381a4de379863c0d41f6d4c00f15e1e.tar.gz
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.
Diffstat (limited to 'src/XlibInt.c')
-rw-r--r--src/XlibInt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/XlibInt.c b/src/XlibInt.c
index a0b2ed2f..4e45e62b 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -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;