aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c')
-rw-r--r--devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c b/devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c
new file mode 100644
index 000000000000..e65e639140f5
--- /dev/null
+++ b/devel/electron13/files/patch-third__party_libXNVCtrl_NVCtrl.c
@@ -0,0 +1,25 @@
+--- third_party/libXNVCtrl/NVCtrl.c.orig 2021-01-07 00:37:22 UTC
++++ third_party/libXNVCtrl/NVCtrl.c
+@@ -27,10 +27,6 @@
+ * libXNVCtrl library properly protects the Display connection.
+ */
+
+-#if !defined(XTHREADS)
+-#define XTHREADS
+-#endif /* XTHREADS */
+-
+ #define NEED_EVENTS
+ #define NEED_REPLIES
+ #include <stdint.h>
+@@ -39,6 +35,11 @@
+ #include <X11/Xutil.h>
+ #include <X11/extensions/Xext.h>
+ #include <X11/extensions/extutil.h>
++
++#if !defined(XTHREADS)
++#define XTHREADS
++#endif /* XTHREADS */
++
+ #include "NVCtrlLib.h"
+ #include "nv_control.h"
+