summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch')
-rw-r--r--meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch
new file mode 100644
index 0000000000..eee640e8a8
--- /dev/null
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch
@@ -0,0 +1,31 @@
1__BEGIN_DECLS/__END_DECLS are BSD specific and not defined in musl
2glibc and uclibc had sys/cdefs.h doing it.
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: tcp_wrappers_7.6/tcpd.h
8===================================================================
9--- tcp_wrappers_7.6.orig/tcpd.h
10+++ tcp_wrappers_7.6/tcpd.h
11@@ -11,7 +11,9 @@
12 #include <netinet/in.h>
13 #include <stdio.h>
14
15-__BEGIN_DECLS
16+#ifdef __cplusplus
17+extern "C" {
18+#endif
19
20 /* Structure to describe one communications endpoint. */
21
22@@ -252,6 +254,8 @@ extern char *fix_strtok();
23 extern char *my_strtok();
24 #endif
25
26-__END_DECLS
27+#ifdef __cplusplus
28+}
29+#endif
30
31 #endif