summaryrefslogtreecommitdiffstats
path: root/lib/utils.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-04-05 08:37:55 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-04-05 08:37:55 (GMT)
commitd3cf89ea9459ddfc1b35ef0a927ec8c969e07a5e (patch)
tree05dca2f5cb00eff2ac546f851c2c0197e7f7ad90 /lib/utils.c
parentea436445ad774179d6b3196e102907272f403da8 (diff)
downloadlibnl-d3cf89ea9459ddfc1b35ef0a927ec8c969e07a5e.zip
libnl-d3cf89ea9459ddfc1b35ef0a927ec8c969e07a5e.tar.gz
libnl-d3cf89ea9459ddfc1b35ef0a927ec8c969e07a5e.tar.bz2
addr: only translate more recent address family names and ARP types if defined
Helps making libnl compilable with older kernel headers Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'lib/utils.c')
-rw-r--r--lib/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 3012fea..4457b1f 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -685,7 +685,9 @@ static const struct trans_tbl llprotos[] = {
__ADD(ARPHRD_IEEE802_TR,tr)
__ADD(ARPHRD_IEEE80211,ieee802.11)
__ADD(ARPHRD_PHONET,phonet)
+#ifdef ARPHRD_CAIF
__ADD(ARPHRD_CAIF, caif)
+#endif
#ifdef ARPHRD_IEEE80211_PRISM
__ADD(ARPHRD_IEEE80211_PRISM, ieee802.11_prism)
#endif