summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch')
-rw-r--r--meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch b/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
deleted file mode 100644
index b2d45c0a0a..0000000000
--- a/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 8c7995ac8da99eed55bf5410c558b1f0a74998d0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 7 Dec 2019 10:27:28 -0800
4Subject: [PATCH 1/2] Remove __BEGIN_DECLS/__END_DECLS
5
6The __BEGIN_DECLS and __END_DECLS are internal identifiers in glibc and
7are not defined in any standard. Using them fails build on musl
8libc, its better to avoid them
9
10Upstream-Status: Submitted [https://github.com/troglobit/sysklogd/pull/10]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/syslog.h | 8 ++++++--
14 1 file changed, 6 insertions(+), 2 deletions(-)
15
16diff --git a/src/syslog.h b/src/syslog.h
17index 4fb7627..120a18f 100644
18--- a/src/syslog.h
19+++ b/src/syslog.h
20@@ -221,7 +221,9 @@ struct syslog_data {
21 .log_mask = 0xff, \
22 }
23
24-__BEGIN_DECLS
25+#ifdef __cplusplus
26+extern "C" {
27+#endif
28 void openlog (const char *, int, int);
29 void closelog (void);
30
31@@ -245,7 +247,9 @@ void syslogp_r (int, struct syslog_data *, const char *, const char *,
32 const char *, ...);
33 void vsyslogp_r (int, struct syslog_data *, const char *, const char *,
34 const char *, va_list);
35-__END_DECLS
36+#ifdef __cplusplus
37+}
38+#endif
39
40 #else /* !__KERNEL__ */
41
42--
432.24.0
44