summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Franck2025-01-10 09:26:57 +0000
committerFelix Fietkau2025-01-14 13:40:27 +0000
commit5d10084ea885b193bccd0f7da7137c1f5d766e58 (patch)
treec5b787b9425af767b0baf8b57146e244a7a0d5d4
parent6d3f51f9fda706f0cf4732c762e4dbe8c21e12cf (diff)
downloadudebug-5d10084ea885b193bccd0f7da7137c1f5d766e58.tar.gz
lib-ucode.c: add #define _GNU_SOURCE
When compiling with glibc, an error is thrown stating that vasprintf is not defined. In order to use vasprintf from glibc, the #define _GNU_SOURCE is needed. Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
-rw-r--r--lib-ucode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib-ucode.c b/lib-ucode.c
index c2ce3b2..f905645 100644
--- a/lib-ucode.c
+++ b/lib-ucode.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <math.h>
#include <libubox/utils.h>
#include <libubox/usock.h>