From: Hans Dedecker Date: Fri, 14 Jan 2022 20:27:39 +0000 (+0100) Subject: system: fix compilation with glibc 2.34 X-Git-Url: http://git.openwrt.org/openwrt/feeds.git?p=project%2Fnetifd.git;a=commitdiff_plain;h=3043206e94da412eb19dd72ea68edcaca545d84c system: fix compilation with glibc 2.34 Fixes ARPHRD_PHONET/ARPHRD_PHONET_PIPE undeclared compilation error with glibc 2.34 Signed-off-by: Hans Dedecker --- diff --git a/system.h b/system.h index 40ef2fe..0f08c26 100644 --- a/system.h +++ b/system.h @@ -81,8 +81,12 @@ static const struct netdev_type netdev_types[] = { {ARPHRD_IEEE80211, "ieee80211"}, {ARPHRD_IEEE80211_PRISM, "ie80211-prism"}, {ARPHRD_IEEE80211_RADIOTAP, "ieee80211-radiotap"}, +#ifdef ARPHRD_PHONET {ARPHRD_PHONET, "phonet"}, +#endif +#ifdef ARPHRD_PHONET_PIPE {ARPHRD_PHONET_PIPE, "phonet-pipe"}, +#endif {ARPHRD_IEEE802154, "ieee802154"}, {ARPHRD_VOID, "void"}, {ARPHRD_NONE, "none"}