diff options
| author | Matthias Franck | 2025-01-10 09:26:57 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-01-14 13:40:27 +0000 |
| commit | 5d10084ea885b193bccd0f7da7137c1f5d766e58 (patch) | |
| tree | c5b787b9425af767b0baf8b57146e244a7a0d5d4 | |
| parent | 6d3f51f9fda706f0cf4732c762e4dbe8c21e12cf (diff) | |
| download | udebug-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.c | 1 |
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> |