Fix compilation on FreeBSD.
authorAndre Noll <maan@systemlinux.org>
Mon, 4 May 2009 11:34:16 +0000 (13:34 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 May 2009 11:34:16 +0000 (13:34 +0200)
Without these two includes, compilation fails on FreeBSD with

/usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type
/usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type
/usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type
/usr/include/net/if.h:368: error: field `addr' has incomplete type
/usr/include/net/if.h:369: error: field `dstaddr' has incomplete type

udp_recv.c
udp_send.c

index edbd7c3..ad8d51f 100644 (file)
@@ -6,6 +6,7 @@
 /** \file udp_recv.c Paraslash's udp receiver */
 
 #include <dirent.h>
+#include <sys/socket.h>
 #include <net/if.h>
 
 #include "para.h"
index 79f384a..0838d02 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <sys/time.h>
 #include <dirent.h>
+#include <sys/socket.h>
 #include <net/if.h>
 
 #include "server.cmdline.h"