diff options
author | Calvin Buckley <[email protected]> | 2019-01-26 12:40:22 -0500 |
---|---|---|
committer | Calvin <[email protected]> | 2019-05-29 06:21:42 -0400 |
commit | 3cc075fc08bd7297cc0f354a919961c7897bcea4 (patch) | |
tree | 1c73f8d567202347ad7273f9e22fdc2c5c06bb39 | |
parent | e0a1799aaaa4bfee44c8cdcf4f30bc2282520a70 (diff) | |
download | otp-3cc075fc08bd7297cc0f354a919961c7897bcea4.tar.gz otp-3cc075fc08bd7297cc0f354a919961c7897bcea4.tar.bz2 otp-3cc075fc08bd7297cc0f354a919961c7897bcea4.zip |
Set preprocessor flags required for AIX and PASE
-rw-r--r-- | erts/configure.in | 6 |
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. |