Fix include order with Xdmcp on WIN32
authorRyan Pavlik <rpavlik@iastate.edu>
Thu, 5 Jan 2012 20:57:53 +0000 (20:57 +0000)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Jan 2012 17:03:31 +0000 (18:03 +0100)
Fix a redefinition problem due to include order which shows up when
building for _WIN32 and libXdmcp is installed, so HASXDMAUTH is enabled

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
src/xcb_auth.c

index 21c26b8..ea4ad8f 100644 (file)
 #include <rpc/types.h>
 #endif
 
+#ifdef HASXDMAUTH
+#include <X11/Xdmcp.h>
+#endif
+
 #ifdef _WIN32
 #include "xcb_windefs.h"
 #else
@@ -48,9 +52,6 @@
 #include "xcb.h"
 #include "xcbint.h"
 
-#ifdef HASXDMAUTH
-#include <X11/Xdmcp.h>
-#endif
 
 enum auth_protos {
 #ifdef HASXDMAUTH