diff --git a/bindings/java/src/jni/javasigar.c b/bindings/java/src/jni/javasigar.c index 2cd85b3d..138c1497 100644 --- a/bindings/java/src/jni/javasigar.c +++ b/bindings/java/src/jni/javasigar.c @@ -35,6 +35,15 @@ #include #include #include +# ifdef __FreeBSD__ +# include +# if (__FreeBSD_version < 700000) +# include +# endif +# else +# include +# endif +#include #endif #include "javasigar_generated.h" @@ -1613,10 +1622,6 @@ JNIEXPORT jlong SIGAR_JNI(ResourceLimit_INFINITY) #ifdef WIN32 return 0x7fffffff; #else -#ifndef __FreeBSD__ -#include -#endif -#include return RLIM_INFINITY; #endif }