Commit dd1dc879 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Include <net/if_arp.h> instead of <netinet/ether.h>.

This fixes compilation under musl.
parent d2459253
......@@ -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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment