From: Roy Marples Date: Mon, 11 Feb 2019 17:45:04 +0000 (+0000) Subject: linux: Fix compile on old RedHat/CentOS systems X-Git-Tag: v7.2.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0021c9a5126be1298c799d58c92f25f066c311a3;p=thirdparty%2Fdhcpcd.git linux: Fix compile on old RedHat/CentOS systems --- diff --git a/src/if-linux.c b/src/if-linux.c index 1dd0bab7..99d3ed6a 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -92,6 +92,11 @@ int if_getssid_wext(const char *ifname, uint8_t *ssid); #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */ #endif +/* Buggy CentOS and RedHat */ +#ifndef SOL_NETLINK +#define SOL_NETLINK 270 +#endif + #define bpf_insn sock_filter #define BPF_SKIPTYPE #define BPF_ETHCOOK -ETH_HLEN