Add xcbint.h to noinst_HEADERS, so it gets distributed.
[free-sw/xcb/libxcb] / src / xcb_util.c
index b1e9327..93e180c 100644 (file)
@@ -26,6 +26,7 @@
 /* Utility functions implementable using only public APIs. */
 
 #include <assert.h>
+#include <sys/types.h>
 #include <sys/select.h>
 #include <sys/socket.h>
 #include <sys/un.h>
@@ -39,6 +40,7 @@
 
 #include "xcb.h"
 #include "xcbext.h"
+#include "xcbint.h"
 
 int XCBPopcount(CARD32 mask)
 {
@@ -161,7 +163,7 @@ XCBConnection *XCBConnect(const char *displayname, int *screenp)
     if(fd == -1)
         return 0;
 
-    XCBGetAuthInfo(fd, &auth);
+    _xcb_get_auth_info(fd, &auth);
     c = XCBConnectToFD(fd, &auth);
     free(auth.name);
     free(auth.data);
@@ -217,3 +219,8 @@ int XCBOpenUnix(const char *file)
 {
        return _xcb_open_unix(file);
 }
+
+int XCBGetAuthInfo(int fd, XCBAuthInfo *info)
+{
+       return _xcb_get_auth_info(fd, info);
+}