diff options
author | Pixel <pixel@nobis-crew.org> | 2008-12-17 00:11:45 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-12-17 00:11:45 -0800 |
commit | b207c51057e00a19949c0a84261b33790c891f62 (patch) | |
tree | 783aa1e38798885ca21cd8d56bd912385a09f5a6 | |
parent | eb0a0106bfe9aa9095fb4bd1e944af31a199f445 (diff) |
Apple fixes.
-rw-r--r-- | mpq-bios.c | 8 | ||||
-rw-r--r-- | recycle.c | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -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; @@ -78,7 +78,7 @@ char *purpose; char *x = (char *)malloc(len); if (!x) { - fprintf(stderr, "malloc of %d failed for %s\n", + fprintf(stderr, "malloc of %ld failed for %s\n", len, purpose); exit(-1); } |