freebsd-ports/devel/electron4/files/patch-third__party_libXNVCtrl_NVCtrl.c
Luca Pizzamiglio 2f40d531c4 devel/electron4: Add electron 4.2.2
Finally, after a long wait, an electron port for FreeBSD lands in the
portstree.

A huge thanks to everyone contributed to this huge effort and to the
maintainer that is willing to take the burden of the maintainership!
2019-05-28 09:12:02 +00:00

25 lines
557 B
C

--- third_party/libXNVCtrl/NVCtrl.c.orig 2019-03-15 06:26:36 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"