#ifndef MINGW
#include <netdb.h>
#include <sys/socket.h>
+#include <sys/un.h>
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
#include <netinet/ip.h> /* superset of previous */
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdarg.h>
#include <errno.h>
#include <signal.h>
#include "langinfo.h"
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)(-1))
+#endif
+
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif