summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-10-01 21:16:40 +0000
committerRichard Earnshaw <Richard.Earnshaw@arm.com>2018-10-05 13:27:34 +0100
commitf53ce0112552166df728bafce57739756a304108 (patch)
tree083f10fafa52cad9068d8bb699f477d33ba2aa44
parent9edf0810db87603fc5c71db20ffc5b955c9adc42 (diff)
downloadcygnal-f53ce0112552166df728bafce57739756a304108.tar.gz
cygnal-f53ce0112552166df728bafce57739756a304108.tar.bz2
cygnal-f53ce0112552166df728bafce57739756a304108.zip
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.
-rw-r--r--newlib/configure.host3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index c5b773465..9e809c9a8 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -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