diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-24 17:00:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-24 17:00:13 +0100 |
commit | 0556a597baea46068d37cf5189321dae3ee4dd36 (patch) | |
tree | 19e052532f47d398ff41ec706e99d082b4a4ef99 /contrib | |
parent | e08769b6325e2e680911f1fce1f0a21bbeb706ce (diff) | |
download | rspamd-0556a597baea46068d37cf5189321dae3ee4dd36.tar.gz rspamd-0556a597baea46068d37cf5189321dae3ee4dd36.zip |
Allow strcase uthash.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/uthash/uthash.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/uthash/uthash.h b/contrib/uthash/uthash.h index 797c21c31..824bb2a76 100644 --- a/contrib/uthash/uthash.h +++ b/contrib/uthash/uthash.h @@ -592,7 +592,9 @@ do { \ #endif /* HASH_USING_NO_STRICT_ALIASING */ /* key comparison function; return 0 if keys equal */ -#define HASH_KEYCMP(a,b,len) memcmp(a,b,len) +#ifndef HASH_KEYCMP +#define HASH_KEYCMP(a,b,len) memcmp(a,b,len) +#endif /* iterate over items in a known bucket to find desired item */ #define HASH_FIND_IN_BKT(tbl,hh,head,keyptr,keylen_in,out) \ |