From dc87ce0930cd1e2df170118f2e44dcd034a078d2 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 11 Aug 2016 16:49:06 +0300 Subject: [PATCH] targets/zephyr/Makefile.zephyr: Work around issue with newlib 2.4.0. Zephyr SDK 0.8.2 contains newlib 2.4.0 which doesn't provide gettimeofday() declaration by default, but needs _XOPEN_SOURCE defined for this. While this is definitely an issue with newlib 2.4.0 (to be fixed in one of the next releases), defining _XOPEN_SOURCE is quite a harmless workaround. JerryScript-DCO-1.0-Signed-off-by: Paul Sokolovsky paul.sokolovsky@linaro.org --- targets/zephyr/Makefile.zephyr | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/zephyr/Makefile.zephyr b/targets/zephyr/Makefile.zephyr index 797d0174b..35135eafa 100755 --- a/targets/zephyr/Makefile.zephyr +++ b/targets/zephyr/Makefile.zephyr @@ -80,6 +80,7 @@ EXT_CFLAGS += -Wall -Wno-format-zero-length -Wno-pointer-sign EXT_CFLAGS += -Werror=format -Werror=implicit-int -Wno-unused-but-set-variable EXT_CFLAGS += -Wno-main -Wno-strict-aliasing -Wno-old-style-declaration EXT_CFLAGS += -Wno-error=format= +EXT_CFLAGS += -D_XOPEN_SOURCE # Pass2 -include $(ZEPHYR_BASE)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT)