aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2020-04-22 10:13:38 +0200
committerDenis Kenzior <denkenz@gmail.com>2020-04-22 10:38:51 -0500
commitc352714e61809fc486470cc9a4ad3e3e84811b80 (patch)
treea20960ef35b2a63ec9632116831fcb5e751fbfa6
parent001b9035e04a1719897bc7333e7d06454501fdcb (diff)
downloadiwd-c352714e61809fc486470cc9a4ad3e3e84811b80.tar.gz
frame-xchg.c: fix build with glibc < 2.24
SOL_NETLINK is used since commit 87a198111af1ea67053895f7435fb99e3cdd2159 resulting in the following build failure with glibc < 2.24: src/frame-xchg.c: In function 'frame_watch_group_io_read': src/frame-xchg.c:328:27: error: 'SOL_NETLINK' undeclared (first use in this function) if (cmsg->cmsg_level != SOL_NETLINK) ^ This failure is due to glibc that doesn't support SOL_NETLINK before version 2.24 and https://github.com/bminor/glibc/commit/f9b437d5efce93800b51ad2a437c8b1c9616bf80 Fixes: - http://autobuild.buildroot.org/results/3485088b84111c271bbcfaf025aa4103c6452072
-rw-r--r--src/frame-xchg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame-xchg.c b/src/frame-xchg.c
index 503516153..4c950fd31 100644
--- a/src/frame-xchg.c
+++ b/src/frame-xchg.c
@@ -42,6 +42,10 @@
#include "src/netdev.h"
#include "src/frame-xchg.h"
+#ifndef SOL_NETLINK
+#define SOL_NETLINK 270
+#endif
+
struct watch_group {
/*
* Group IDs, except 0, are per wdev for user's convenience.