Skip to content

Commit c5589d1

Browse files
authored
Merge pull request #22417 from fengxue-IS/054-vt22410
(v0.54.0) Undefine conflicting macro in header file
2 parents f1f9fee + ee6bec0 commit c5589d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

runtime/oti/ContinuationHelpers.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
#include "j9vmconstantpool.h"
2828
#if JAVA_SPEC_VERSION >= 24
2929
#include "thrtypes.h"
30+
/* thrtypes.h includes dependency to <fcntl.h> which on AIX contains:
31+
* #define open open64
32+
* This conflicts with other uses of the name "open".
33+
*/
34+
#if defined(open)
35+
#undef open
36+
#endif /* defined(open) */
3037
#endif /* JAVA_SPEC_VERSION >= 24 */
3138
#include "VMHelpers.hpp"
3239

0 commit comments

Comments
 (0)