Fix Keith's 32-bit wrap fix.
[free-sw/xcb/libxcb] / src / xcb_util.c
index 06b5bca..3bcaefd 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <netinet/in.h>
 #ifdef DNETCONN
 #include <netdnet/dnetdb.h>
 #include <netdnet/dn.h>
@@ -239,6 +240,7 @@ XCBConnection *XCBConnectToDisplayWithAuthInfo(const char *displayname, XCBAuthI
     return XCBConnectToFD(fd, auth);
 }
 
+/* backwards compatible interfaces: remove before 1.0 release */
 int XCBSync(XCBConnection *c, XCBGenericError **e)
 {
     XCBGetInputFocusRep *reply = XCBGetInputFocusReply(c, XCBGetInputFocus(c), e);
@@ -246,10 +248,6 @@ int XCBSync(XCBConnection *c, XCBGenericError **e)
     return reply != 0;
 }
 
-
-
-
-/* backwards compatible interfaces: remove before 1.0 release */
 XCBConnection *XCBConnectBasic()
 {
     XCBConnection *c = XCBConnect(0, 0);