summaryrefslogtreecommitdiff
path: root/src/xcb_auth.c
diff options
context:
space:
mode:
authorMarkus Duft <mduft@gentoo.org>2011-08-24 10:49:06 -0400
committerPeter Harris <pharris@opentext.com>2011-08-24 10:49:06 -0400
commit163c47bdc0d32785d831e4c93fea9ab7e023446b (patch)
treea6987e0565bfe2af985943b41b1c9aaccccc677d /src/xcb_auth.c
parentaa02096b8e7f94ad3c998a8d5af54963ee860b13 (diff)
Support pre-IPv6 systems (without getaddrinfo)
Some of these systems (eg. Interix on XP) are still in use. Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Peter Harris <pharris@opentext.com>
Diffstat (limited to 'src/xcb_auth.c')
-rw-r--r--src/xcb_auth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xcb_auth.c b/src/xcb_auth.c
index a3a7e45..859ab8a 100644
--- a/src/xcb_auth.c
+++ b/src/xcb_auth.c
@@ -30,6 +30,12 @@
#include <sys/param.h>
#include <unistd.h>
#include <stdlib.h>
+#include <arpa/inet.h>
+
+#ifdef __INTERIX
+/* _don't_ ask. interix has INADDR_LOOPBACK in here. */
+#include <rpc/types.h>
+#endif
#ifdef _WIN32
#include "xcb_windefs.h"