From 3043206e94da412eb19dd72ea68edcaca545d84c Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Fri, 14 Jan 2022 21:27:39 +0100 Subject: 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 --- system.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system.h') 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"} -- cgit v1.2.1