I recently tested BasiliskII with 64-bit hard drive file I/O and it appears to work properly :)!
I'm trying to repair a friend's hard drive, but her image file is 2.5GB. Default compiles of
BasiliskII said that the file was too large, but adding "-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE" to the DEFS line in the generated src/Unix/Makefile did the trick for now in
addition to the following change:
RCS file: /cvs/BasiliskII/src/Unix/sys_unix.cpp,v
retrieving revision 1.10
diff -u -3 -p -r1.10 sys_unix.cpp
--- sys_unix.cpp 31 Jul 2001 14:10:35 -0000 1.10
+++ sys_unix.cpp 22 Dec 2001 16:55:39 -0000
@@ -274,9 +274,9 @@ void *Sys_open(const char *name, bool re
// Open file/device
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
- int fd = open(name, (read_only ? O_RDONLY : O_RDWR) | (is_cdrom ? O_NONBLOCK : 0));
+ int fd = open64(name, (read_only ? O_RDONLY : O_RDWR) | (is_cdrom ? O_NONBLOCK : 0));
int fd = open(name, read_only ? O_RDONLY : O_RDWR);
Could BasiliskII be verified as 64-bit safe, and this option added to the configure script? So
far, it seems to be working great :-)!
Log in to post a comment.