diff options
author | yazoo <yazoo@yaz0r.net> | 2009-01-09 11:51:40 +0100 |
---|---|---|
committer | yazoo <yazoo@yaz0r.net> | 2009-01-09 11:51:40 +0100 |
commit | d2f0b38ce91cd4210023fedbb6a809815b2f6339 (patch) | |
tree | 858471bcb13bbf252dc4276f573766c2ef38e2a4 | |
parent | 85f492bf2aa6ed36f4c0b152162492028456a72f (diff) | |
parent | b207c51057e00a19949c0a84261b33790c891f62 (diff) |
Merge branch 'master' of ssh+git://yazoo@git.grumpycoder.net:5223/pub/repo.git/mpqlib
-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); } |