diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-21 20:26:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-21 20:26:49 +0200 |
commit | 515a80251f14d4c033fd49918e9ecac308e135dd (patch) | |
tree | d149071e0eaeb09bb6e109cf416196b27a9d8829 | |
parent | fa31a460d8cb59288c4324eb684bd3ce21e837c3 (diff) |
add a #ifdef around the 6rd code to make it compile with older kernels that do not have 6rd support
-rw-r--r-- | system-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c index aaa8230..c4d094d 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1065,6 +1065,7 @@ int system_add_ip_tunnel(const char *name, struct blob_attr *attr) if (tunnel_ioctl(base, SIOCADDTUNNEL, &p) < 0) return -1; +#ifdef SIOCADD6RD cur = tb[TUNNEL_ATTR_6RD_PREFIX]; if (cur && is_sit) { unsigned int mask; @@ -1089,6 +1090,7 @@ int system_add_ip_tunnel(const char *name, struct blob_attr *attr) return -1; } } +#endif return 0; } |