|
From: | Fortin Denis |
Subject: | Re: [Mldonkey-users] >2GB Bug again? |
Date: | Sat, 15 Nov 2003 14:30:04 +0100 |
Here's an interesting link for portability : http://devrsrc1.external.hp.com/STK/portability.html. In our situation we use an Int64 in ocaml to store file offset. In ocaml Int64 is a signed 64 bits long int (-1). In C we use a long which is a signed 32bits int. We can use off_t instead of unsigned long long (which doesn't need to be unsigned!). But on my system off_t is 4 Bytes long when compiled without -D_FILE_OFFSET_BITS=64 or AC_SYS_LARGEFILE_SENSITIVE (and 8 Bytes with). You can patch this file with off_t but make sure to use -D_FILE_OFFSET_BITS=64 or AC_SYS_LARGEFILE_SENSITIVE (in configure.ac (or .in?)). Denis
[Prev in Thread] | Current Thread | [Next in Thread] |