projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96902e8
)
system: fix compilation with glibc 2.34
author
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 14 Jan 2022 20:27:39 +0000
(21:27 +0100)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 14 Jan 2022 20:31:23 +0000
(21:31 +0100)
Fixes ARPHRD_PHONET/ARPHRD_PHONET_PIPE undeclared compilation error with
glibc 2.34
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
system.h
patch
|
blob
|
history
diff --git
a/system.h
b/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"}