diff options
| author | Rosen Penev | 2019-08-26 22:22:15 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2019-08-28 13:25:40 +0000 |
| commit | 0430252482d0a9007cfb6571622c1b0b5ab7b93d (patch) | |
| tree | 9cb8d33131b601dcdd9fc73959d3601109a41927 | |
| parent | 95580316bc2d37d9261691ea99dae518bde46836 (diff) | |
| download | procd-0430252482d0a9007cfb6571622c1b0b5ab7b93d.tar.gz | |
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 <rosenp@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
| -rw-r--r-- | sysupgrade.c | 1 |
1 files changed, 1 insertions, 0 deletions
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" |