aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xcb/use_xwindows_includes.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xcb/use_xwindows_includes.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xcb/use_xwindows_includes.patch')
-rw-r--r--vcpkg/ports/xcb/use_xwindows_includes.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/xcb/use_xwindows_includes.patch b/vcpkg/ports/xcb/use_xwindows_includes.patch
new file mode 100644
index 0000000..23177fc
--- /dev/null
+++ b/vcpkg/ports/xcb/use_xwindows_includes.patch
@@ -0,0 +1,21 @@
+diff --git a/src/xcb_windefs.h b/src/xcb_windefs.h
+index df6026da3..7591c61e7 100644
+--- a/src/xcb_windefs.h
++++ b/src/xcb_windefs.h
+@@ -31,10 +31,13 @@
+ #define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */
+ #endif
+
+-#include <winsock2.h>
++#include <stdio.h>
++#include <X11/Xwindows.h>
++#include <X11/Xwinsock.h>
++typedef unsigned char BYTE;
+-#include <ws2tcpip.h>
+-#include <windef.h>
+
++#define STDERR_FILENO _fileno( stderr )
++
+ struct iovec {
+ void *iov_base; /* Pointer to data. */
+ int iov_len; /* Length of data. */