40 lines
954 B
Diff
40 lines
954 B
Diff
--- src/libnet_link_linux.c 2012-03-19 17:59:50.000000000 +0100
|
|
+++ src/libnet_link_linux.c 2015-08-07 15:36:24.378946840 +0200
|
|
@@ -30,13 +30,8 @@
|
|
#include <sys/time.h>
|
|
|
|
#include <net/if.h>
|
|
-#if (__GLIBC__)
|
|
#include <netinet/if_ether.h>
|
|
#include <net/if_arp.h>
|
|
-#else
|
|
-#include <linux/if_arp.h>
|
|
-#include <linux/if_ether.h>
|
|
-#endif
|
|
|
|
#if (HAVE_PACKET_SOCKET)
|
|
#ifndef SOL_PACKET
|
|
--- src/libnet_link_linux.c 2018-01-04 18:20:00.809758263 +0100
|
|
+++ src/libnet_link_linux.c 2018-01-04 18:19:35.515756459 +0100
|
|
@@ -30,8 +30,8 @@
|
|
#include <sys/time.h>
|
|
|
|
#include <net/if.h>
|
|
-#include <netinet/if_ether.h>
|
|
#include <net/if_arp.h>
|
|
+#include <netinet/if_ether.h>
|
|
|
|
#if (HAVE_PACKET_SOCKET)
|
|
#ifndef SOL_PACKET
|
|
@@ -43,8 +43,10 @@
|
|
#else
|
|
#include <asm/types.h>
|
|
#include <linux/if_packet.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <linux/if_ether.h> /* The L2 protocols */
|
|
#endif
|
|
+#endif
|
|
#endif /* HAVE_PACKET_SOCKET */
|
|
|
|
#include "../include/libnet.h"
|