1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
9 #include <sys/socket.h>
10 #include <sys/types.h>
13 #include <sys/ioctl.h>
14 #include <netinet/in.h>
15 #include <arpa/inet.h>
25 #include <sys/resource.h>
30 #define INVALID_SOCKET (-1)
32 #define closesocket close
33 #define ioctlsocket ioctl
36 /* TODO: Ideally this should take into the account how
37 * long the socket path really is.
39 # define SUN_LEN(sun) (sizeof(sockaddr_un))
43 # define PATH_MAX 1024
47 # define MAXPATHLEN PATH_MAX
48 #endif /* MAXPATHLEN */