summaryrefslogtreecommitdiff
path: root/patches/libX11/0001-Add-include-needed-for-FIONREAD-on-Cygwin.patch
blob: 99ac1178719072504a8480dac14231276f1ba57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From a078fe9b51c5630d06344f58b24d547022258981 Mon Sep 17 00:00:00 2001
From: Jon Turney <jon.turney@dronecode.org.uk>
Date: Wed, 13 Mar 2019 13:12:20 +0000
Subject: [PATCH lib/libX11] Add include needed for FIONREAD on Cygwin

---
 src/XlibInt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/XlibInt.c b/src/XlibInt.c
index a0b2ed2f..56e37e2e 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -52,6 +52,9 @@ from The Open Group.
 #include <sys/filio.h>
 #endif
 
+/* Needed for FIONREAD on Cygwin */
+#include <sys/socket.h>
+
 /* Needed for ioctl() on Solaris */
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
-- 
2.17.0