Package: jffi / 1.2.7-11

nonlinux-platforms.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Steven Chamberlain <steven@pyro.eu.org>
Date: Wed, 16 Dec 2015 18:56:35 +0000
Subject: just use platform=Linux for GNU/kFreeBSD and Hurd
Bug-Debian: http://bugs.debian.org/808175

--- a/build.xml
+++ b/build.xml
@@ -93,6 +93,13 @@
     <condition property="platform.os" value="Windows">
       <os family="Windows"/>
     </condition>
+    <!-- Treat GNU/kFreeBSD or Hurd just like Linux platform -->
+    <condition property="platform.os" value="Linux">
+      <or>
+        <os name="GNU/kFreeBSD"/>
+        <os name="GNU"/>
+      </or>
+    </condition>
     <!-- default to os.arch for the cpu -->
     <condition property="platform.cpu" value="${os.arch}">
       <not><isset property="platform.cpu"/></not>
--- a/jni/jffi/endian.h
+++ b/jni/jffi/endian.h
@@ -36,7 +36,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
 #  include_next <endian.h>
 #endif