[PATCH 07/18] header: Add backport-include/net/ipv6_stubs.h
Hauke Mehrtens <[email protected]>
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
---
backport/backport-include/net/ipv6_stubs.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 backport/backport-include/net/ipv6_stubs.h
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 */
--
2.20.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in