summaryrefslogtreecommitdiff
path: root/dev.c
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2016-09-27 15:04:41 +0800
committerTobias Klauser <tklauser@distanz.ch>2016-09-29 09:29:08 +0200
commit7007975949f5177fbf2514633cc44ba0ac4712c5 (patch)
tree9a0e58e8d0c796ca83f4edfb18fd3a312f23f022 /dev.c
parent4749393697360d02b2612673473163214ff99be1 (diff)
all: fix build on CentOS 6 by checking presence of several macros
Protect usage of macros not present in pre-3.x kernels. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'dev.c')
-rw-r--r--dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev.c b/dev.c
index 5a43643..2960976 100644
--- a/dev.c
+++ b/dev.c
@@ -385,8 +385,10 @@ const char *device_type2str(uint16_t type)
return "phonet";
case ARPHRD_PHONET_PIPE:
return "phonet_pipe";
+#if defined(ARPHRD_CAIF)
case ARPHRD_CAIF:
return "caif";
+#endif
case ARPHRD_IP6GRE:
return "ip6gre";
case ARPHRD_NETLINK: