#include <errno.h>
#include <stdbool.h>
#include <string.h>
-#include <strings.h>
+#if HAVE_STRINGS_H
+# include <strings.h>
+#endif
#include <ctype.h>
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+#include "p9y/socket.hpp"
/*
** **********************************************************************