aboutsummaryrefslogtreecommitdiffstats
path: root/ext/sdbm/sdbm.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 02:49:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 02:49:46 +0000
commit2b0fe8070b594b0c7d733e0b4f8531d6e2984722 (patch)
tree69fbe19598536e569c36ac2dfee72d2b1caa7678 /ext/sdbm/sdbm.h
parentfbe5ce6ca7c57cb74572395b6cc5e9f76dd3c9d8 (diff)
downloadruby-2b0fe8070b594b0c7d733e0b4f8531d6e2984722.tar.gz
* ext/sdbm/sdbm.h (DBM): large file support on win32.
[ruby-core:23039] * ext/sdbm/depend: objects depend on sdbm.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm/sdbm.h')
-rw-r--r--ext/sdbm/sdbm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/sdbm/sdbm.h b/ext/sdbm/sdbm.h
index 9691b29855..c3b53c4a8f 100644
--- a/ext/sdbm/sdbm.h
+++ b/ext/sdbm/sdbm.h
@@ -7,6 +7,8 @@
#ifndef _SDBM_H_
#define _SDBM_H_
+#include <stdio.h>
+
#define DBLKSIZ 4096
#define PBLKSIZ 1024
#define PAIRMAX 1008 /* arbitrary on PBLKSIZ-N */
@@ -19,11 +21,11 @@ typedef struct {
int dirf; /* directory file descriptor */
int pagf; /* page file descriptor */
int flags; /* status/error flags, see below */
- long maxbno; /* size of dirfile in bits */
+ int keyptr; /* current key for nextkey */
+ off_t maxbno; /* size of dirfile in bits */
long curbit; /* current bit number */
long hmask; /* current hash mask */
long blkptr; /* current block for nextkey */
- int keyptr; /* current key for nextkey */
long blkno; /* current page to read/write */
long pagbno; /* current page in pagbuf */
char pagbuf[PBLKSIZ]; /* page file block buffer */