summaryrefslogtreecommitdiff
path: root/srclib/apr/include/arch/netware/apr_arch_file_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'srclib/apr/include/arch/netware/apr_arch_file_io.h')
-rw-r--r--srclib/apr/include/arch/netware/apr_arch_file_io.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/srclib/apr/include/arch/netware/apr_arch_file_io.h b/srclib/apr/include/arch/netware/apr_arch_file_io.h
index dd1c42f2..0676eb27 100644
--- a/srclib/apr/include/arch/netware/apr_arch_file_io.h
+++ b/srclib/apr/include/arch/netware/apr_arch_file_io.h
@@ -69,7 +69,9 @@
/* End System headers */
-#define APR_FILE_BUFSIZE 4096
+#define APR_FILE_DEFAULT_BUFSIZE 4096
+/* For backwards compat */
+#define APR_FILE_BUFSIZE APR_FILE_DEFAULT_BUFSIZE
#if APR_HAS_THREADS
#define file_lock(f) do { \
@@ -109,7 +111,8 @@ struct apr_file_t {
/* Stuff for buffered mode */
char *buffer;
- int bufpos; /* Read/Write position in buffer */
+ apr_size_t bufpos; /* Read/Write position in buffer */
+ apr_size_t bufsize; /* The buffer size */
apr_off_t dataRead; /* amount of valid data read into buffer */
int direction; /* buffer being used for 0 = read, 1 = write */
apr_off_t filePtr; /* position in file of handle */