potential 64 bit build issue related to zlib
This commit is contained in:
parent
3fb9fcab9e
commit
4aa809e558
|
@ -78,6 +78,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h> // for DIR
|
#include <dirent.h> // for DIR
|
||||||
|
|
||||||
|
#undef _FILE_OFFSET_BITS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
|
|
|
@ -101,6 +101,8 @@ static int my_fallocate(int fd, int mode, loff_t offset, loff_t len)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef _FILE_OFFSET_BITS
|
||||||
|
|
||||||
// make sure the _FILE_OFFSET_BITS define worked
|
// make sure the _FILE_OFFSET_BITS define worked
|
||||||
// on this platform. It's supposed to make file
|
// on this platform. It's supposed to make file
|
||||||
// related functions support 64-bit offsets.
|
// related functions support 64-bit offsets.
|
||||||
|
|
Loading…
Reference in New Issue