]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Add _GNU_SOURCE to strsignal.c
authorMichalis Pappas <michalis@unikraft.io>
Mon, 8 Jan 2024 16:13:56 +0000 (17:13 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Mon, 17 Feb 2025 14:46:09 +0000 (14:46 +0000)
After updating signal.h from musl strsignal.c requires
_GNU_SOURCE for _NSIG.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1244

lib/nolibc/musl-imported/src/string/strsignal.c

index 32fdc5506eaa627bd878dfe7850bfc0ba98c16ed..343da81ed8a9aa2883da8c03bb3176489773c3b1 100644 (file)
@@ -1,9 +1,11 @@
 /* taken from musl */
 
-#include <uk/essentials.h>
+#define _GNU_SOURCE
 #include <string.h>
 #include <signal.h>
 
+#include <uk/essentials.h>
+
 /*
  * TODO: not used - delete
  */