summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2022-01-14 21:27:39 +0100
committerHans Dedecker <dedeckeh@gmail.com>2022-01-14 21:31:23 +0100
commit3043206e94da412eb19dd72ea68edcaca545d84c (patch)
tree099ae75fe6af7d3d7ca5d9fe85f82504d5a84785
parent96902e8fb712a070867a0a822d7877fdb10573f5 (diff)
downloadnetifd-3043206e94da412eb19dd72ea68edcaca545d84c.tar.gz
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 <dedeckeh@gmail.com>
-rw-r--r--system.h4
1 files changed, 4 insertions, 0 deletions
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"}