xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/musl-decls.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun__BEGIN_DECLS/__END_DECLS are BSD specific and not defined in musl
2*4882a593Smuzhiyunglibc and uclibc had sys/cdefs.h doing it.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunUpstream-Status: Pending
5*4882a593SmuzhiyunSigned-off-by: Khem Raj <raj.khem@gmail.com>
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunIndex: tcp_wrappers_7.6/tcpd.h
8*4882a593Smuzhiyun===================================================================
9*4882a593Smuzhiyun--- tcp_wrappers_7.6.orig/tcpd.h
10*4882a593Smuzhiyun+++ tcp_wrappers_7.6/tcpd.h
11*4882a593Smuzhiyun@@ -11,7 +11,9 @@
12*4882a593Smuzhiyun #include <netinet/in.h>
13*4882a593Smuzhiyun #include <stdio.h>
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun-__BEGIN_DECLS
16*4882a593Smuzhiyun+#ifdef __cplusplus
17*4882a593Smuzhiyun+extern "C" {
18*4882a593Smuzhiyun+#endif
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun /* Structure to describe one communications endpoint. */
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun@@ -252,6 +254,8 @@ extern char *fix_strtok();
23*4882a593Smuzhiyun extern char *my_strtok();
24*4882a593Smuzhiyun #endif
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun-__END_DECLS
27*4882a593Smuzhiyun+#ifdef __cplusplus
28*4882a593Smuzhiyun+}
29*4882a593Smuzhiyun+#endif
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun #endif
32