Skip to content

Commit

Permalink
Include <net/if_arp.h> instead of <netinet/ether.h>.
Browse files Browse the repository at this point in the history
This fixes compilation under musl.
  • Loading branch information
Juliusz Chroboczek committed Jun 16, 2015
1 parent d245925 commit dd1dc87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ THE SOFTWARE.
#include <linux/rtnetlink.h>
#include <linux/if_bridge.h>
#include <linux/fib_rules.h>
#include <netinet/ether.h>
#include <net/if_arp.h>

#if(__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 5)
#define RTA_TABLE 15
Expand Down Expand Up @@ -74,6 +74,7 @@ int num_old_if = 0;
static int dgram_socket = -1;

#ifndef ARPHRD_ETHER
#warning ARPHRD_ETHER not defined, we might not support exotic link layers
#define ARPHRD_ETHER 1
#define NO_ARPHRD
#endif
Expand Down

0 comments on commit dd1dc87

Please sign in to comment.