java: import include/linux everywhere
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 11 Nov 2014 16:57:38 +0000 (11:57 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 11 Nov 2014 17:06:26 +0000 (12:06 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/java/java.nit
src/ffi/java.nit

index 389c6f6..0b6a652 100644 (file)
@@ -27,7 +27,7 @@
 # most of JNI functions. You can use it to further customize the behavior
 # of your code.
 module java is
-       c_compiler_option("-I $(JAVA_HOME)/include/")
+       c_compiler_option "-I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/linux/"
        c_linker_option("-L $(JNI_LIB_PATH) -ljvm")
        new_annotation extra_java_files
 end
index fa3cc84..9191141 100644 (file)
@@ -242,7 +242,7 @@ redef class MModule
        # Tell the C compiler where to find jni.h and how to link with libjvm
        private fun insert_compiler_options
        do
-               c_compiler_options = "{c_compiler_options} -I $(JAVA_HOME)/include/"
+               c_compiler_options = "{c_compiler_options} -I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/linux/"
                c_linker_options = "{c_linker_options} -L $(JNI_LIB_PATH) -ljvm"
        end