Aha, murasaki's sources were pulling globaltypes.h in before any system
headers that would define __WORDSIZE.  Adding #include <sys/types.h> at
the top remedies that, per the revised patch I've attached.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu

Author: Aaron M. Ucko <u...@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__)

Reply via email to