Revert "Fix include order with Xdmcp on WIN32"
authorJeremy Huddleston <jeremyhu@freedesktop.org>
Wed, 18 Jan 2012 07:55:23 +0000 (23:55 -0800)
committerJeremy Huddleston <jeremyhu@apple.com>
Sat, 28 Jan 2012 20:44:06 +0000 (12:44 -0800)
This reverts commit 0e9246def562be97cc816f824f702233a826ec56.

This change caused build failures because <X11/Xdmcp.h> was never
included under any circumstance.  This is because the check for
HASXDMAUTH was moved before the inclusion of config.h (via xcbint.h)
which defined it.

Found-by: Tinderbox
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
src/xcb_auth.c

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