summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-06-24 17:54:19 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-07-06 11:47:22 +0200
commit781d2d83fad99ffc777d28cd38d733f08b8c765d (patch)
treea4e172274bb3937906dbf766339c3de247693fd9
parent10b8f7ab9c71356618813fcbb320105f0c7894a3 (diff)
header: Add backport-include/net/ipv6_stubs.h
ipv6_stubs.h was added in kernel commit 3616d08bcbb5 ("ipv6: Move ipv6 stubs to a separate header file"). Most of its content is from include/net/addrconf.h, so include that file indirectly on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/net/ipv6_stubs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/backport/backport-include/net/ipv6_stubs.h b/backport/backport-include/net/ipv6_stubs.h
new file mode 100644
index 00000000..7d9a5226
--- /dev/null
+++ b/backport/backport-include/net/ipv6_stubs.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BACKPORT_IPV6_STUBS_H
+#define _BACKPORT_IPV6_STUBS_H
+
+#if LINUX_VERSION_IS_LESS(5,2,0)
+
+#include <net/addrconf.h>
+
+#else
+#include_next <net/ipv6_stubs.h>
+#endif
+
+#endif /* _BACKPORT_IPV6_STUBS_H */