Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 1 | From e0df1f07d1707d5daf0358cc60b30f06121f7e60 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 2 | From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> |
| 3 | Date: Fri, 25 Dec 2020 11:41:43 +0900 |
| 4 | Subject: [PATCH] don't fail if GLOB_BRACE is not defined |
| 5 | |
| 6 | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 7 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 8 | --- |
| 9 | src/util.c | 6 ++++++ |
| 10 | 1 file changed, 6 insertions(+) |
| 11 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 12 | diff --git a/src/util.c b/src/util.c |
| 13 | index a4c0dba..fd4542d 100644 |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 14 | --- a/src/util.c |
| 15 | +++ b/src/util.c |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 16 | @@ -25,6 +25,12 @@ |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 17 | #include "util.h" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 18 | #include "netplan.h" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 19 | |
| 20 | +/* Don't fail if the standard library |
| 21 | + * doesn't provide brace expansion */ |
| 22 | +#ifndef GLOB_BRACE |
| 23 | +#define GLOB_BRACE 0 |
| 24 | +#endif |
| 25 | + |
| 26 | GHashTable* wifi_frequency_24; |
| 27 | GHashTable* wifi_frequency_5; |
| 28 | |