summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2019-08-14 13:15:09 +0800
committerNaveen Saini <naveen.kumar.saini@intel.com>2019-08-21 09:26:14 +0800
commite7e38f991ff56b3c628c1cb0b891be8a4c125b1d (patch)
treed24e9dd477e80acb84cf53d3c6909f6be4212a84
parent9d0c34b22345878e61a5765bbd7a48c6791ffe09 (diff)
downloadATCD-e7e38f991ff56b3c628c1cb0b891be8a4c125b1d.tar.gz
config-linux-common.h: fix glibc build failure
Recent glibc v2.30 dropped XSI STREAMS declarations, which causing below build failure. poky/build/tmp/work/corei7-64-poky-linux/ace/6.5.6-r0/ACE_wrappers/ace/os_include/os_stropts.h:56:17: fatal error: stropts.h: No such file or directory 56 | # include /**/ <stropts.h> | ^~~~~~~~~~~ compilation terminated. Added _XOPEN_STREAMS not defined checks for newer GLIBC releases. For more information about glibc v2.30 change, please check: https://sourceware.org/git/?p=glibc.git;a=commit;h=a0a0dc83173ce11ff45105fd32e5d14356cdfb9c Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--ACE/ace/config-linux-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/config-linux-common.h b/ACE/ace/config-linux-common.h
index b9d112602ad..c0fb656c321 100644
--- a/ACE/ace/config-linux-common.h
+++ b/ACE/ace/config-linux-common.h
@@ -173,7 +173,7 @@
// Starting with FC9 rawhide this file is not available anymore but
// this define is set
-#if defined _XOPEN_STREAMS && _XOPEN_STREAMS == -1
+#if !defined(_XOPEN_STREAMS) || (defined _XOPEN_STREAMS && _XOPEN_STREAMS == -1)
# define ACE_LACKS_STROPTS_H
# define ACE_LACKS_STRRECVFD
#endif