Index: tool/uriparse.c
--- tool/uriparse.c.orig	2013-12-04 01:20:54.000000000 +0100
+++ tool/uriparse.c	2014-08-30 17:03:15.121322423 +0200
@@ -38,6 +38,8 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <uriparser/Uri.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
