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)
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

index a5bad9a8e4264e3cfc1caf4f0a2a4edec70043bb..ce30798e5478877ae82ea0a4b225e31c2ef40134 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 
+#define _GNU_SOURCE
 #include "watchdog.h"
 #include "sysupgrade.h"