diff options
Diffstat (limited to 'netlib.c')
-rw-r--r-- | netlib.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,6 +7,17 @@ #include <errno.h> #include <string.h> #include <fcntl.h> +#include <netdb.h> +#ifndef S_SPLINT_S +#ifndef AF_UNSPEC +#include <sys/socket.h> +#endif /* AF_UNSPEC */ +#endif /* S_SPLINT_S */ +#ifndef INADDR_ANY +#include <netinet/in.h> +#endif /* INADDR_ANY */ +#include <sys/un.h> +#include <arpa/inet.h> /* for htons() and friends */ #ifndef S_SPLINT_S #include <unistd.h> #endif /* S_SPLINT_S */ |