Skip to content

Commit dc87ce0

Browse files
committed
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 [email protected]
1 parent d39c418 commit dc87ce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/zephyr/Makefile.zephyr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ EXT_CFLAGS += -Wall -Wno-format-zero-length -Wno-pointer-sign
8080
EXT_CFLAGS += -Werror=format -Werror=implicit-int -Wno-unused-but-set-variable
8181
EXT_CFLAGS += -Wno-main -Wno-strict-aliasing -Wno-old-style-declaration
8282
EXT_CFLAGS += -Wno-error=format=
83+
EXT_CFLAGS += -D_XOPEN_SOURCE
8384

8485
# Pass2
8586
-include $(ZEPHYR_BASE)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT)

0 commit comments

Comments
 (0)