This is necessary for OS X 10.8 and earlier.
Signed-off-by: Ryan Schmidt <git@ryandesign.com>
linux/magic.h \
mntent.h \
net/ethernet.h \
- net/if.h \
pty.h \
pwd.h \
stdarg.h \
sys/ucred.h \
xlocale.h \
])
+AC_CHECK_HEADERS([net/if.h], [], [], [[#include <sys/socket.h>]])
dnl Check whether endian provides handy macros.
AC_CHECK_DECLS([htole64], [], [], [[#include <endian.h>]])
AC_CHECK_FUNCS([stat stat64 __xstat __xstat64 lstat lstat64 __lxstat __lxstat64])
#pragma once
-#ifdef HAVE_NET_IF_H
-# include <net/if.h>
-#endif
-
#include "virbitmap.h"
#include "virsocketaddr.h"
#include "virmacaddr.h"
#include "virnetdevvlan.h"
#include "virenum.h"
+#ifdef HAVE_NET_IF_H
+# include <net/if.h>
+#endif
+
#ifdef HAVE_STRUCT_IFREQ
typedef struct ifreq virIfreq;
#else