aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch
blob: cabceae84d07ebff324949afa1398d8f72236e9a (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
From 0ea11f520a8b4453e60eaf0679b9feb757024422 Mon Sep 17 00:00:00 2001
From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Date: Fri, 25 Dec 2020 11:41:43 +0900
Subject: [PATCH] don't fail if GLOB_BRACE is not defined

Upstream-Status: Pending

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
 src/util.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/util.c b/src/util.c
index 36eb896a..ee13ec44 100644
--- a/src/util.c
+++ b/src/util.c
@@ -35,6 +35,12 @@
 #include "names.h"
 #include "yaml-helpers.h"
 
+/* Don't fail if the standard library
+ * doesn't provide brace expansion */
+#ifndef GLOB_BRACE
+#define GLOB_BRACE 0
+#endif
+
 GHashTable*
 wifi_frequency_24;
 
-- 
2.25.1