From 0430252482d0a9007cfb6571622c1b0b5ab7b93d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 26 Aug 2019 15:22:15 -0700 Subject: [PATCH] sysupgrade: add missing _GNU_SOURCE define (FS#2469) Fixes compilation problems: error: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Werror=implicit-function-declaration] 57 | if (asprintf(&name, "%s%s", prefix, blobmsg_name(option)) <= 0) | ^~~~~~~~ | vsprintf Signed-off-by: Rosen Penev Signed-off-by: Hans Dedecker --- sysupgrade.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sysupgrade.c b/sysupgrade.c index a5bad9a..ce30798 100644 --- a/sysupgrade.c +++ b/sysupgrade.c @@ -14,6 +14,7 @@ */ +#define _GNU_SOURCE #include "watchdog.h" #include "sysupgrade.h" -- 2.30.2