--- configure.orig	2017-03-16 02:53:04.000000000 +0000
+++ configure	2017-03-16 02:53:32.000000000 +0000
@@ -635,6 +635,9 @@
 #endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
 #endif"
 
 ac_subst_vars='LTLIBOBJS