qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] OS X compile fix
@ 2014-05-17 23:14 Peter Bartoli
  2014-05-18  8:50 ` Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Bartoli @ 2014-05-17 23:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Andreas Färber

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]


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) {

[-- Attachment #2: Type: text/html, Size: 2803 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-19 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-17 23:14 [Qemu-devel] OS X compile fix Peter Bartoli
2014-05-18  8:50 ` Andreas Färber
2014-05-18 11:40   ` Peter Maydell
2014-05-18 22:45     ` Peter Bartoli
2014-05-18 23:09       ` Peter Maydell
2014-05-19  0:06         ` Peter Bartoli
2014-05-19  8:19           ` Peter Maydell
2014-05-19 13:41             ` Aggeler  Fabian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).