diff options
author | Aaron Hurt <ahurt@ena.com> | 2016-06-09 13:57:20 -0500 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-17 02:03:46 +0200 |
commit | 1d12b9eb04b0c3f8c63711843ad7ff351af79087 (patch) | |
tree | 37d4c1146a818e1eec00d7e8963f6b779a582fa0 /testing/gearmand/libhashkit-common.h.patch | |
parent | ce73ece7e051ab9ecf7a77e4a3a73cc5687080e9 (diff) | |
download | aports-1d12b9eb04b0c3f8c63711843ad7ff351af79087.tar.bz2 aports-1d12b9eb04b0c3f8c63711843ad7ff351af79087.tar.xz |
testing/gearmand: new aport
http://gearman.org
A distributed job queue
Diffstat (limited to 'testing/gearmand/libhashkit-common.h.patch')
-rw-r--r-- | testing/gearmand/libhashkit-common.h.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/gearmand/libhashkit-common.h.patch b/testing/gearmand/libhashkit-common.h.patch new file mode 100644 index 0000000000..f8c424317d --- /dev/null +++ b/testing/gearmand/libhashkit-common.h.patch @@ -0,0 +1,25 @@ +--- a/libhashkit/common.h ++++ b/libhashkit/common.h +@@ -44,12 +44,22 @@ + #include <stdio.h> + #include <stdlib.h> + #include <math.h> ++#include <limits.h> + + #ifndef __WORDSIZE + # ifdef __MINGW32__ + # define __WORDSIZE 32 + # endif + #endif ++ ++/* last try - use information from limits.h */ ++#ifndef __WORDSIZE ++# if ULONG_MAX == 0xffffffffffffffff ++# define __WORDSIZE 64 ++# elif ULONG_MAX == 0xffffffff ++# define __WORDSIZE 32 ++# endif /* ULONG_MAX */ ++#endif /* __WORDSIZE */ + + #include <libhashkit-1.0/hashkit.h> + #include "libhashkit/algorithm.h" |