File 0189-Set-preprocessor-flags-required-for-AIX-and-PASE.patch of Package erlang

From 3cc075fc08bd7297cc0f354a919961c7897bcea4 Mon Sep 17 00:00:00 2001
From: Calvin Buckley <calvin@cmpct.info>
Date: Sat, 26 Jan 2019 12:40:22 -0500
Subject: [PATCH 09/12] Set preprocessor flags required for AIX and PASE

---
 erts/configure.in | 6 ++++++
 1 file changed, 6 insertions(+)

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.
-- 
2.16.4

openSUSE Build Service is sponsored by