potential 64 bit build issue related to zlib

This commit is contained in:
Arvid Norberg 2010-09-07 03:37:33 +00:00
parent 3fb9fcab9e
commit 4aa809e558
2 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,9 @@ POSSIBILITY OF SUCH DAMAGE.
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h> // for DIR
#undef _FILE_OFFSET_BITS
#endif
namespace libtorrent

View File

@ -101,6 +101,8 @@ static int my_fallocate(int fd, int mode, loff_t offset, loff_t len)
#endif
#undef _FILE_OFFSET_BITS
// make sure the _FILE_OFFSET_BITS define worked
// on this platform. It's supposed to make file
// related functions support 64-bit offsets.