summaryrefslogtreecommitdiff
path: root/mpq-bios.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpq-bios.c')
-rw-r--r--mpq-bios.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mpq-bios.c b/mpq-bios.c
index d2c96f7..7ed56f8 100644
--- a/mpq-bios.c
+++ b/mpq-bios.c
@@ -12,6 +12,10 @@
#include <unistd.h>
#endif
+#ifdef __APPLE__
+#define lseek64 lseek
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -129,6 +133,10 @@ struct mpq_archive_t {
#define O_BINARY 0
#endif
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
struct mpq_archive_t * mpqlib_open_archive(const char * fname) {
int fd;
struct mpq_archive_t * r;