#include "h/file.h"
#endif
#include "net/if.h"
+# ifdef AFS_FBSD_ENV
+# include <sys/socket.h>
+# include <net/if.h>
+# include <net/if_var.h>
+# endif
#endif
#if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
#include "netinet/in_var.h"
#include "h/errno.h"
#if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
/* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
-#include "stdarg.h"
+# if defined(AFS_FBSD_ENV)
+# include "machine/stdarg.h"
+# else
+# include "stdarg.h"
+# endif
#endif
#ifdef KERNEL
#include "afs/sysincludes.h"