aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch
blob: 0fa6ba48a4cca873626d4366e7b45e123e9318b5 (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
From ceb4111af317ecc54d97bb21878dcccbfdb2983e 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

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

--- a/src/util.c
+++ b/src/util.c
@@ -24,6 +24,12 @@
 #include "util.h"
 #include "netplan.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;
 GHashTable* wifi_frequency_5;