commit | 8c7122c9519dfd46ea7c8c026eab6f7aed74cf21 | [log] [tgz] |
---|---|---|
author | Wichert Akkerman <wichert@deephackmode.org> | Fri Feb 16 19:59:55 2001 +0000 |
committer | Wichert Akkerman <wichert@deephackmode.org> | Fri Feb 16 19:59:55 2001 +0000 |
tree | 2da335e8435feb72459ab1fc91999c2eb2757b78 | |
parent | efdecacc5d7f91c17adb7cdb1dd7306ea6d22c9f [diff] [blame] |
Test for netinet/tcp.h and udp.h and use those
diff --git a/net.c b/net.c index 17ace69..066965a 100644 --- a/net.c +++ b/net.c
@@ -36,9 +36,12 @@ #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> -#ifdef FREEBSD +#ifdef HAVE_NETINET_TCP_H #include <netinet/tcp.h> #endif +#ifdef HAVE_NETINET_UDP_H +#include <netinet/udp.h> +#endif #include <arpa/inet.h> #if defined(LINUX) #include <asm/types.h>