[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Use of LONG_LONG_MAX breaks build on OSX ?
From: |
Emmanuel Kasper |
Subject: |
[Qemu-devel] Use of LONG_LONG_MAX breaks build on OSX ? |
Date: |
Fri, 08 Jan 2010 00:20:54 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; fr; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] Use of LONG_LONG_MAX breaks build on OSX ?,
Emmanuel Kasper <=