]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: Fix compile on old RedHat/CentOS systems
authorRoy Marples <roy@marples.name>
Mon, 11 Feb 2019 17:45:04 +0000 (17:45 +0000)
committerRoy Marples <roy@marples.name>
Mon, 11 Feb 2019 17:45:04 +0000 (17:45 +0000)
src/if-linux.c

index 1dd0bab746e24aa89b3667cef337d07bc56122f2..99d3ed6ad6bd76f719028c0742fd4af823dcb0af 100644 (file)
@@ -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