qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] OS X compile fix


From: Peter Bartoli
Subject: [Qemu-devel] OS X compile fix
Date: Sat, 17 May 2014 16:14:59 -0700


At the recommendation of Mark Cave-Ayland, I'm sending this patch in to remedy a long-time Mac OS X compile issue.  The offsets are a way off in this diff, but it still works.

-peter

--- block/raw-posix.c.orig      2012-12-03 11:37:05.000000000 -0800
+++ block/raw-posix.c   2012-12-03 18:24:47.000000000 -0800
@@ -914,11 +914,11 @@
                         size = 0;
         }
         if (size == 0)
 #endif
 #if defined(__APPLE__) && defined(__MACH__)
-        size = LONG_LONG_MAX;
+        size = LLONG_MAX;
 #else
         size = lseek(fd, 0LL, SEEK_END);
 #endif
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
         switch(s->type) {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]