summaryrefslogtreecommitdiff
path: root/debian/patches/003-Fix-machine.h.diff
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/003-Fix-machine.h.diff
parent00f0f05856418300572fab584b6f2b211c05eff9 (diff)
Fix machine.h
Diffstat (limited to 'debian/patches/003-Fix-machine.h.diff')
-rw-r--r--debian/patches/003-Fix-machine.h.diff18
1 files changed, 18 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