diff options
Diffstat (limited to 'sock.h')
-rw-r--r-- | sock.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,13 @@ #include <errno.h> #include <fcntl.h> +/* To cut down on the ifdef stuff a little bit in other places */ +#ifdef IPV6 +#define AF_INETx AF_INET6 +#else +#define AF_INETx AF_INET +#endif + #ifndef _WIN32 #include <unistd.h> #include <sys/socket.h> |