summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2014-06-17 11:53:33 +0200
committerAndrew Shadura <andrew@shadura.me>2014-06-17 11:53:33 +0200
commit4b245ca598df5c637990ceb17ecc8a9c165b880c (patch)
tree6bc780ecaaaf01f2c0c77d7cd48a8d2f25c47eb7 /debian/patches
parent00f0f05856418300572fab584b6f2b211c05eff9 (diff)
Fix machine.h
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/003-Fix-machine.h.diff18
-rw-r--r--debian/patches/series1
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/003-Fix-machine.h.diff b/debian/patches/003-Fix-machine.h.diff
new file mode 100644
index 0000000..a9f8773
--- /dev/null
+++ b/debian/patches/003-Fix-machine.h.diff
@@ -0,0 +1,18 @@
+--- a/src/libmowgli/platform/machine.h
++++ b/src/libmowgli/platform/machine.h
+@@ -180,13 +180,13 @@
+ #if defined _LP64 || defined __LP64
+ #define MOWGLI_CPU_BITS 64
+ #define MOWGLI_CPU_BITS_64
+-#elif
++#else
+ #define MOWGLI_CPU_BITS 32
+ #define MOWGLI_CPU_BITS_32
+ #endif
+ #endif
+
+-#if defined __linux || defined __linux__
++#if defined __linux || defined __linux__ || defined __FreeBSD_kernel__
+ #define MOWGLI_OS_LINUX
+ #define MOWGLI_OS linux
+ #define MOWGLI_OS_THREADS_POSIX
diff --git a/debian/patches/series b/debian/patches/series
index cb8b34e..de1b8cb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
001-Disable_Makefile_silent_output.diff
002-Make-Examples-Buildable-standalone.diff
+003-Fix-machine.h.diff