qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Use of LONG_LONG_MAX breaks build on OSX ?
@ 2010-01-07 23:20 Emmanuel Kasper
  2010-02-28 18:07 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Kasper @ 2010-01-07 23:20 UTC (permalink / raw)
  To: qemu-devel

Hello
Qemu does not build on my platform ( OSX / 10.5 / PowerPC ) because of
the use of  LONG_LONG_MAX in raw-posix.c
Replacing LONG_LONG_MAX with LLONG_MAX fixes the build and is more
standard  IMHO ( LONG_LONG_MAX is GNU libc, LLONG_MAX is C99 standard )
The following patch makes this trivial switch.

--- block-raw-posix.c.before    2010-01-07 22:40:37.000000000 +0100
+++ block-raw-posix.c   2010-01-07 22:41:43.000000000 +0100
@@ -782,7 +782,7 @@
         if (size == 0)
 #endif
 #ifdef CONFIG_COCOA
-        size = LONG_LONG_MAX;
+        size = LLONG_MAX;
 #else
         size = lseek(fd, 0LL, SEEK_END);
 #endif

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

end of thread, other threads:[~2010-02-28 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 23:20 [Qemu-devel] Use of LONG_LONG_MAX breaks build on OSX ? Emmanuel Kasper
2010-02-28 18:07 ` Aurelien Jarno

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