$NetBSD$

--- common.h.orig	Sun Dec 28 19:47:54 2003
+++ common.h	Thu Jan  1 22:25:32 2004
@@ -8,6 +8,8 @@
  */
 
 #include <stdio.h>
+#include <sys/types.h> /* for FreeBSD-STABLE -- dotz@irc.pl */
+#include <net/ethernet.h> /* for FreeBSD -- dotz@irc.pl */
 
 #ifdef HAVE_CONFIG_H
   #include "config.h"
@@ -52,7 +53,10 @@
   #include <netinet/udp.h>
 #endif
 #ifdef HAVE_NETINET_IN_H
-  #include <netinet/in.h>
+#ifdef __FreeBSD__
+#include <netinet/in_systm.h>
+#endif
+#include <netinet/in.h>
 #endif
 #ifdef HAVE_NETINET_IP_H
   #include <netinet/ip.h>
