Include netinet/in_systm.h alongside netinet/ip.h

This fixes the following error when compiling on e.g. FreeBSD 6.x:

In file included from conn.c:40:
/usr/include/netinet/ip.h:160: error: syntax error before "n_long"
/usr/include/netinet/ip.h:163: error: syntax error before "n_long"
This commit is contained in:
Alexander Barton 2010-04-11 16:58:29 +00:00
parent 025342fe46
commit 1caa3fb94b
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#ifdef HAVE_NETINET_IP_H #ifdef HAVE_NETINET_IP_H
# include <netinet/in_systm.h>
# include <netinet/ip.h> # include <netinet/ip.h>
#endif #endif