the problem is that since we rip out largefile flags on the modperl side,
Off_t is 4 bytes (16 bit int), whereas on the perl side Off_t is 8 bytes
(64 bit int).  for testing, add the largefile flags (as reported by
perl -V:ccflags_uselargefiles) like the diff below.
we could solve this on the modperl side by re-enabling largefile flags for
apr_perlio.c only.  but then when Apache::PerlIO gets implemented (to
replace tie *STD{IN,OUT}), we cannot since it will change the sizeof
request_rec.  if perl were to change to something that is always 64 bit
int (like NV), we'd be ok in both cases (i think).

diff -u -r1.4 apr_perlio.c
--- xs/APR/PerlIO/apr_perlio.c  2001/12/18 01:13:15     1.4
+++ xs/APR/PerlIO/apr_perlio.c  2001/12/18 05:12:31
@@ -1,3 +1,5 @@
+#define _LARGEFILE_SOURCE 
+#define _FILE_OFFSET_BITS 64
 
 #include "mod_perl.h"
 #include "apr_perlio.h"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to