linux/ns_common.h was added with 3.19. All older kernels should not include this header to avoid compile errors.
Signed-off-by: Sven Eckelmann sven@narfation.org --- compat-include/linux/ns_common.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 compat-include/linux/ns_common.h
diff --git a/compat-include/linux/ns_common.h b/compat-include/linux/ns_common.h new file mode 100644 index 0000000..a60a77f --- /dev/null +++ b/compat-include/linux/ns_common.h @@ -0,0 +1,29 @@ +/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: + * + * Marek Lindner, Simon Wunderlich + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see http://www.gnu.org/licenses/. + * + * This file contains macros for maintaining compatibility with older versions + * of the Linux kernel. + */ + +#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_NS_COMMON_H_ +#define _NET_BATMAN_ADV_COMPAT_LINUX_NS_COMMON_H_ + +#include <linux/version.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) +#include_next <linux/ns_common.h> +#endif /* >= KERNEL_VERSION(3, 19, 0) */ + +#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_NS_COMMON_H_ */