diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2016-09-27 15:04:41 +0800 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-09-29 09:29:08 +0200 |
commit | 7007975949f5177fbf2514633cc44ba0ac4712c5 (patch) | |
tree | 9a0e58e8d0c796ca83f4edfb18fd3a312f23f022 /dev.c | |
parent | 4749393697360d02b2612673473163214ff99be1 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |