sysupgrade: add missing _GNU_SOURCE define (FS#2469)
authorRosen Penev <rosenp@gmail.com>
Mon, 26 Aug 2019 22:22:15 +0000 (15:22 -0700)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 28 Aug 2019 13:25:40 +0000 (15:25 +0200)
commit0430252482d0a9007cfb6571622c1b0b5ab7b93d
tree9cb8d33131b601dcdd9fc73959d3601109a41927
parent95580316bc2d37d9261691ea99dae518bde46836
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>
sysupgrade.c