From: Rafał Miłecki Date: Fri, 9 Apr 2021 09:36:57 +0000 (+0200) Subject: firmware-utils: zyimage: drop POSIX SOURCE defines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=489aa752d7276de8fd972d9554e0be938be64b4b;p=openwrt%2Fstaging%2Fynezz.git firmware-utils: zyimage: drop POSIX SOURCE defines This fixes: src/zyimage.c:10:0: warning: "_POSIX_SOURCE" redefined src/zyimage.c:11:0: warning: "_POSIX_C_SOURCE" redefined This change has been tested on Linux with -Wextra and on Mac OS. Signed-off-by: Rafał Miłecki --- diff --git a/tools/firmware-utils/src/zyimage.c b/tools/firmware-utils/src/zyimage.c index 6aacf2ff1b..4f7cfd6f43 100644 --- a/tools/firmware-utils/src/zyimage.c +++ b/tools/firmware-utils/src/zyimage.c @@ -7,8 +7,6 @@ * */ -#define _POSIX_SOURCE -#define _POSIX_C_SOURCE 199309L /* getopt */ #include #include #include