From 9b769def1acca06d47ad3ccb1863749bd5d4fa98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 11 Nov 2014 11:57:38 -0500 Subject: [PATCH] java: import include/linux everywhere MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/java/java.nit | 2 +- src/ffi/java.nit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/java/java.nit b/lib/java/java.nit index 389c6f6..0b6a652 100644 --- a/lib/java/java.nit +++ b/lib/java/java.nit @@ -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 diff --git a/src/ffi/java.nit b/src/ffi/java.nit index fa3cc84..9191141 100644 --- a/src/ffi/java.nit +++ b/src/ffi/java.nit @@ -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 -- 1.7.9.5