summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-02-11 17:45:04 +0000
committerRoy Marples <roy@marples.name>2019-02-11 17:45:04 +0000
commit2e1657edffd718ba3b7882c998e54c0777857d50 (patch)
tree9a241a2b819a967934bdab4c0d4647b2bcad3d85
parent45f898bd750589d1607c252aeaf040c2985374d5 (diff)
downloaddhcpcd-2e1657edffd718ba3b7882c998e54c0777857d50.tar.xz
linux: Fix compile on old RedHat/CentOS systems
-rw-r--r--src/if-linux.c5
1 files changed, 5 insertions, 0 deletions
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