Skip to content
Browse files

don't try to use FreeBSD pread wrapper on OSX

OSX also sets __FreeBSD__ in the preprocessor
  • Loading branch information...
1 parent 1fe18ba commit 7c2c440c9bc01144493a26e51f5402116baa09bc @kelnos kelnos committed May 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 disk.c
2 disk.c
@@ -29,7 +29,7 @@ static int disk_fd = -1;
static int pread_wrapper(int disk_fd, void *p, size_t size, off_t where)
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(__APPLE__)
#define PREAD_BLOCK_SIZE 1024
/* FreeBSD needs to read aligned whole blocks.
* TODO: Check what is a safe block size.

0 comments on commit 7c2c440

Please sign in to comment.
Something went wrong with that request. Please try again.