blockd: add missing #define _GNU_SOURCE master
authorDaniel Golle <daniel@makrotopia.org>
Sun, 16 May 2021 08:49:24 +0000 (09:49 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 16 May 2021 08:49:24 +0000 (09:49 +0100)
asprintf requires _GNU_SOURCE to be defined. Set it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
blockd.c

index f2db7b4..d6dfeb8 100644 (file)
--- a/blockd.c
+++ b/blockd.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <sys/stat.h>
 #include <sys/mount.h>
 #include <sys/wait.h>