system: fix compilation with glibc 2.34
[project/netifd.git] / system.h
index 40ef2fefc65630e064b8b65e31a5328256b81935..0f08c2666298393363cab34a3474ddb399ef5b9c 100644 (file)
--- 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"}