aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorCalvin Buckley <[email protected]>2019-01-26 12:40:22 -0500
committerCalvin <[email protected]>2019-05-29 06:21:42 -0400
commit3cc075fc08bd7297cc0f354a919961c7897bcea4 (patch)
tree1c73f8d567202347ad7273f9e22fdc2c5c06bb39 /erts/configure.in
parente0a1799aaaa4bfee44c8cdcf4f30bc2282520a70 (diff)
downloadotp-3cc075fc08bd7297cc0f354a919961c7897bcea4.tar.gz
otp-3cc075fc08bd7297cc0f354a919961c7897bcea4.tar.bz2
otp-3cc075fc08bd7297cc0f354a919961c7897bcea4.zip
Set preprocessor flags required for AIX and PASE
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in
index f7d883bcca..e8923d0dcf 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -447,6 +447,12 @@ dnl ---------------------------------------------------------------------
dnl NOTE: CPPFLAGS will be included in CFLAGS at the end
case $host_os in
linux*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";;
+ aix*|os400*)
+ # * _ALL_SOURCE: Required to get the winsize structure for TIOCSWINSZ.
+ # * _LINUX_SOURCE_COMPAT: Not required, but makes some libc functions
+ # behave closer to glibc assumptions.
+ CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
+ ;;
win32)
# The ethread library requires _WIN32_WINNT of at least 0x0403.
# -D_WIN32_WINNT=* from CPPFLAGS is saved in ETHR_DEFS.