From: Johannes Berg Date: Thu, 7 Sep 2017 10:55:02 +0000 (+0200) Subject: iw: define SOL_NETLINK if it isn't X-Git-Tag: v4.14~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86da57ad86f32bc5cfeed87a55d6baaa9b1a2a79;p=thirdparty%2Fiw.git iw: define SOL_NETLINK if it isn't We need SOL_NETLINK but userspace headers don't always define it. Signed-off-by: Johannes Berg --- diff --git a/iw.c b/iw.c index 50fa3b8..daa2a77 100644 --- a/iw.c +++ b/iw.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/iw.h b/iw.h index 67e011e..3c51d84 100644 --- a/iw.h +++ b/iw.h @@ -30,6 +30,9 @@ enum nlmsgerr_attrs { #ifndef NLM_F_ACK_TLVS #define NLM_F_ACK_TLVS 0x200 #endif +#ifndef SOL_NETLINK +#define SOL_NETLINK 270 +#endif #define ETH_ALEN 6 #define VHT_MUMIMO_GROUP_LEN 24