Package: murasaki / 1.68.6-8

freebsd.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
Author: Aaron M. Ucko <ucko@debian.org>
Last-Update: Thu, 09 Jul 2015 23:27:22 -0400
Bug-Debian: http://bugs.debian.org/789971
Description: Use __WORDSIZE wherever it is available which is not
 only the case for Linux.  This should enable build on kfreebsd arch.

--- a/src/globaltypes.h
+++ b/src/globaltypes.h
@@ -27,6 +27,8 @@ along with Murasaki.  If not, see <http:
 #ifndef _GLOBALTYPES_H_
 #define _GLOBALTYPES_H_
 
+#include <sys/types.h>
+
 #ifdef LARGESEQ_SUPPORT
 typedef long SeqPos;
 #else
@@ -38,7 +40,7 @@ typedef unsigned long word;
 
 //originally defined in sequence.h
 
-#ifdef __linux__
+#ifdef __WORDSIZE
 #define WORDSIZE __WORDSIZE
 #else
 #if (defined(__FreeBSD__) && defined(__i386__)) || (defined (__APPLE__) && (defined (__ppc__) || defined (__i386__))) || defined(__MINGW32__)