aboutsummaryrefslogtreecommitdiff
path: root/locale/hashval.h
diff options
context:
space:
mode:
Diffstat (limited to 'locale/hashval.h')
-rw-r--r--locale/hashval.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/hashval.h b/locale/hashval.h
index e35957d..f846cdf 100644
--- a/locale/hashval.h
+++ b/locale/hashval.h
@@ -19,7 +19,8 @@
02111-1307 USA. */
#ifndef LONGBITS
-# define LONGBITS (sizeof (long int) * BITSPERBYTE)
+# include <limits.h>
+# define LONGBITS (sizeof (long int) * CHAR_BIT)
#endif
unsigned long int compute_hashval (const void *key, size_t keylen);