Define _COMPILING_NEWLIB on aarch64 to define function prototypes from unistd.h.

2018-10-01  Christophe Lyon  <christophe.lyon@linaro.org>

    	* newlib/configure.host: Define _COMPILING_NEWLIB for aarch64.
This commit is contained in:
Christophe Lyon 2018-10-01 21:16:40 +00:00 committed by Richard Earnshaw
parent 9edf0810db
commit f53ce01125
1 changed files with 3 additions and 0 deletions

View File

@ -438,6 +438,9 @@ case "${host}" in
sys_dir=a29khif
signal_dir=
;;
aarch64*-*-*)
newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
;;
arm*-*-*)
newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
sys_dir=arm