From: Miriam Ruiz Date: Wed, 3 Dec 2008 11:15:38 +0000 (+0100) Subject: Fixes building problem on all 64 bit arches X-Git-Url: https://repo.or.cz/w/kraptor.git/commitdiff_plain/43db1aa57b4a76f8f20cf1b8468b60fccda6d442 Fixes building problem on all 64 bit arches MASK_WORD_BITBITS was not defined right for those architectures See: http://bugs.debian.org/311840 --- diff --git a/include/pmask.h b/include/pmask.h index 7455a39..e1ec9d4 100644 --- a/include/pmask.h +++ b/include/pmask.h @@ -43,9 +43,12 @@ extern "C" { //MASK_WORD_BITBITS should be the log base 2 //of the number of bits in MASK_WORD_TYPE -//e.g. 4 for 16-bit ints, 5 for 32-bit ints, 6 for 64-bit ints +//e.g. 4 for 16-bit ints, 5 for 32-bit ints, 6 for 64-bit ints +#if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__) +#define MASK_WORD_BITBITS 6 +#else #define MASK_WORD_BITBITS 5 - +#endif //if SINGLE_MEMORY_BLOCK is defined //then each mask will be allocated as