blockd: add missing #define _GNU_SOURCE
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 f2db7b4d146e5f83248406db64a6607c8f15f699..d6dfeb8ff0ad590f8b44925d5375a9863065bfb0 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>