From: Rosen Penev Date: Mon, 26 Aug 2019 22:22:15 +0000 (-0700) Subject: sysupgrade: add missing _GNU_SOURCE define (FS#2469) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0430252482d0a9007cfb6571622c1b0b5ab7b93d;p=project%2Fprocd.git 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 --- 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"