Skip to content

Commit b5b5d6c

Browse files
sumitradawnV8 LUCI CQ
authored andcommitted
Fix for no member named 'init_jmpbuf' on AIX
In AIX, the system header file usr/include/sys/context.h file has jmpbuf redefined as __jmpbuf which is creating the problem here. Change-Id: I4393e260092016315ac7559465684e3fdbba4900 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4868434 Reviewed-by: Jakob Linke <[email protected]> Commit-Queue: Milad Farazmand <[email protected]> Cr-Commit-Position: refs/heads/main@{#90087}
1 parent ac9c876 commit b5b5d6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/globals.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
#define V8_INFINITY std::numeric_limits<double>::infinity()
2323

24+
// AIX has jmpbuf redefined as __jmpbuf in /usr/include/sys/context.h
25+
// which replaces v8's jmpbuf , resulting in undefined symbol errors
26+
#if defined(V8_OS_AIX) && defined(jmpbuf)
27+
#undef jmpbuf
28+
#endif
29+
2430
namespace v8 {
2531

2632
namespace base {

0 commit comments

Comments
 (0)