Fix USE_LARGE_FILES with bcc32 on Win32?
Steve Hay [Fri, 22 Jul 2005 16:53:11 +0000 (16:53 +0000)]
Trawling through all these config files, I think I've found the
reason why bcc32 builds with USE_LARGE_FILES were failing (e.g.
(see http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-06/msg00809.html):
lseeksize and lseektype were set to 8 and __int64, but Borland's
<io.h> suggests that they should be 4 and long respectively.

Changing them accordingly makes all tests pass. And I see that
win32/win32.c has special handling for __BORLANDC__ + USE_LARGE_FILES,
presumably to cope with this difference?

p4raw-id: //depot/perl@25216

win32/config.bc

index 1c285bf..ed9d974 100644 (file)
@@ -735,8 +735,8 @@ longsize='4'
 lp=''
 lpr=''
 ls='dir'
-lseeksize='8'
-lseektype='__int64'
+lseeksize='4'
+lseektype='long'
 mail=''
 mailx=''
 make='dmake'