summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-16 01:09:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-16 01:09:22 +0000
commita56128cb6b3ea4627b6695edab03059309381357 (patch)
tree1cedd936831ff073d7e4ae07fcfa2bb00e2ffb3f
parent2b8f445551b321900fa7193fbbf591141fe6f60d (diff)
downloadperl-a56128cb6b3ea4627b6695edab03059309381357.tar.gz
The type of the hash_cb() size argument is tricky.
p4raw-id: //depot/perl@7703
-rw-r--r--ext/DB_File/DB_File.xs10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/DB_File/DB_File.xs b/ext/DB_File/DB_File.xs
index f6df68a117..2ea8a61ccf 100644
--- a/ext/DB_File/DB_File.xs
+++ b/ext/DB_File/DB_File.xs
@@ -584,13 +584,19 @@ const DBT * key2 ;
return (retval) ;
}
+#ifdef BERKELEY_DB_1_OR_2
+# define HASH_CB_SIZE_TYPE size_t
+#else
+# define HASH_CB_SIZE_TYPE u_int32_t
+#endif
+
static DB_Hash_t
#ifdef CAN_PROTOTYPE
-hash_cb(const void *data, u_int32_t size)
+hash_cb(const void *data, HASH_CB_SIZE_TYPE size)
#else
hash_cb(data, size)
const void * data ;
-u_int32_t size ;
+HASH_CB_SIZE_TYPE size ;
#endif
{
#ifdef dTHX