mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Include <sys/socket.h> before including <net/if.h>
This is necessary for OS X 10.8 and earlier. Signed-off-by: Ryan Schmidt <git@ryandesign.com>
This commit is contained in:
parent
c4cd0ef917
commit
a9f1ac3a97
@ -395,7 +395,6 @@ AC_CHECK_HEADERS([\
|
||||
linux/magic.h \
|
||||
mntent.h \
|
||||
net/ethernet.h \
|
||||
net/if.h \
|
||||
pty.h \
|
||||
pwd.h \
|
||||
stdarg.h \
|
||||
@ -407,6 +406,7 @@ AC_CHECK_HEADERS([\
|
||||
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])
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef HAVE_NET_IF_H
|
||||
# include <net/if.h>
|
||||
#endif
|
||||
|
||||
#include "virbitmap.h"
|
||||
#include "virsocketaddr.h"
|
||||
#include "virmacaddr.h"
|
||||
@ -29,6 +25,10 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user