diff mbox series

[07/18] header: Add backport-include/net/ipv6_stubs.h

Message ID 20190701214914.8066-8-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show
Series backports: Update for kernel 5.2 | expand

Commit Message

Hauke Mehrtens July 1, 2019, 9:49 p.m. UTC
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>
---
 backport/backport-include/net/ipv6_stubs.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 backport/backport-include/net/ipv6_stubs.h
diff mbox series

Patch

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 */