summaryrefslogtreecommitdiff
path: root/user/xscope/disable-xtrans.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/xscope/disable-xtrans.patch')
-rw-r--r--user/xscope/disable-xtrans.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/xscope/disable-xtrans.patch b/user/xscope/disable-xtrans.patch
new file mode 100644
index 000000000..ebc44ca66
--- /dev/null
+++ b/user/xscope/disable-xtrans.patch
@@ -0,0 +1,31 @@
+From 4e297db3cf54a629a2c8f38b068cd4f8434afa4c Mon Sep 17 00:00:00 2001
+From: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Wed, 13 Jul 2022 15:51:58 -0700
+Subject: [PATCH] fd.h: fix build when not building with xtrans
+
+Always include <X11/Xfuncproto.h> for the definition of _X_NORETURN,
+instead of relying on Xtrans.h to include it indirectly for us.
+
+Fixes: #2
+Fixes: commit cc298d1f559240976344588f9f765ee60ca3d6f3
+
+Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+---
+ fd.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/fd.h b/fd.h
+index c317aa4..55c5b01 100644
+--- a/fd.h
++++ b/fd.h
+@@ -65,6 +65,7 @@
+ typedef void *XtransConnInfo;
+ #endif
+ #include <sys/select.h>
++#include <X11/Xfuncproto.h>
+
+ typedef int FD;
+
+--
+GitLab
+