Skip to content

Commit

Permalink
Add j9cfg.h to pick up JAVA_SPEC_VERSION definition
Browse files Browse the repository at this point in the history
GetModule API is guarded by JAVA_SPEC_VERSION check
that requires j9cfg.h from the 'include' directory.
Add that directory for j9vm31 compiles.  This directory
needs to be placed after include31, to ensure the correct
jni headers are used.

Signed-off-by: Joran Siu <joransiu@ca.ibm.com>
  • Loading branch information
joransiu committed Nov 25, 2021
1 parent 198bff3 commit 5ac801c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/j9vm31/j9vm31.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "j9cel4ro64.h"
#include "jni.h"
#include "j9cfg.h"

/* High tag bits to signify 31-bit function handles that are passed to 64-bit. */
#define HANDLE31_HIGHTAG 0x31000000
Expand Down
1 change: 1 addition & 0 deletions runtime/j9vm31/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
</exports>
<includes>
<include path="j9include31"/>
<include path="j9include"/>
</includes>
<makefilestubs>
<makefilestub data="UMA_TREAT_WARNINGS_AS_ERRORS=1"/>
Expand Down

0 comments on commit 5ac801c

Please sign in to comment.