$OpenBSD: patch-third_party_libXNVCtrl_NVCtrl_c,v 1.2 2015/05/06 14:27:24 robert Exp $
--- third_party/libXNVCtrl/NVCtrl.c.orig.port	Fri Mar 22 02:13:35 2013
+++ third_party/libXNVCtrl/NVCtrl.c	Tue Apr  2 21:05:17 2013
@@ -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"
 
