net-misc/netplan: add musl libc compat patch

This commit is contained in:
2024-10-25 08:29:54 +03:00
parent 4abbfa541c
commit acd9ae18ed
3 changed files with 45 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
From 9c8e47d9721a390b877fc7de82bef1e9a1857714 Mon Sep 17 00:00:00 2001
From: Alexander Miroshnichenko <alex@millerson.name>
Date: Fri, 25 Oct 2024 08:18:59 +0300
Subject: [PATCH] don't fail if GLOB_BRACE is not defined
---
src/util.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/util.c b/src/util.c
index 294a2f4..44f62c6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -39,6 +39,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.45.2