mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 18:56:25 +00:00
fixed build error on centos/ubuntu linux.
This commit is contained in:
parent
92baae2a89
commit
97c74654c1
8
serval.h
Normal file → Executable file
8
serval.h
Normal file → Executable file
@ -38,15 +38,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||||||
#ifdef HAVE_NET_ROUTE_H
|
#ifdef HAVE_NET_ROUTE_H
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_LINUX_IF_H
|
||||||
|
#include <linux/if.h>
|
||||||
|
#else
|
||||||
#ifdef HAVE_NET_IF_H
|
#ifdef HAVE_NET_IF_H
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LINUX_IF_H
|
|
||||||
#include <linux/if.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_LINUX_NETLINK_H
|
#ifdef HAVE_LINUX_NETLINK_H
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#endif
|
#endif
|
||||||
@ -91,7 +92,6 @@ struct in_addr {
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <net/if.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user