projects
/
project
/
udebug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3f51f
)
lib-ucode.c: add #define _GNU_SOURCE
master
author
Matthias Franck
<matthias.franck@softathome.com>
Fri, 10 Jan 2025 09:26:57 +0000
(10:26 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 14 Jan 2025 13:40:27 +0000
(14:40 +0100)
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>
lib-ucode.c
patch
|
blob
|
history
diff --git
a/lib-ucode.c
b/lib-ucode.c
index c2ce3b24ea0c3d9763cfa4760d334b7b9df5e04b..f905645aa3b4024ab37fb8155bf3128d4050c1ca 100644
(file)
--- 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>