aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Undefine-GLOB_BRACE.patch
blob: 7903bb1ccf0f0eb91685019ef31bfc99df4dcb6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 6746e3a9615d1566bf228e9012d0841b15178810 Mon Sep 17 00:00:00 2001
From: Ming Liu <liu.ming50@gmail.com>
Date: Sun, 26 Feb 2017 13:50:33 +0100
Subject: [PATCH] Undefine GLOB_BRACE

GLOB_BRACE is not defined in posix and thus not implemented in musl libc.

Fixed by defining it to 0 if it is undefined.

Upstream-Status: Inappropriate [musl libc specific]

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
---
 plugins/imfile/imfile.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index d20471f..f9aff81 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -85,6 +85,11 @@ static int bLegacyCnfModGlobalsPermitted;/* are legacy module-global config para
 
 #define ADD_METADATA_UNSPECIFIED -1
 
+/* fixes build with musl libc */
+#ifndef GLOB_BRACE
+#define GLOB_BRACE 0
+#endif
+
 /* this structure is used in pure polling mode as well one of the support
  * structures for inotify.
  */
-- 
1.9.1