aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-05-23 17:15:41 +0100
committerKevin Wolf <kwolf@redhat.com>2014-05-30 14:26:54 +0200
commit675036e4dadd2426c93c54d7f7155f519eda53e6 (patch)
tree87ebdd46693c8f93a02135156ab1424f8f206b50 /block
parentbb9cd2ee99f6537c072d5f4bac441717d3cd2bed (diff)
downloadqemu-675036e4dadd2426c93c54d7f7155f519eda53e6.zip
qemu-675036e4dadd2426c93c54d7f7155f519eda53e6.tar.gz
qemu-675036e4dadd2426c93c54d7f7155f519eda53e6.tar.bz2
block/raw-posix.c: Avoid nonstandard LONG_LONG_MAX
In the MacOSX specific code in raw-posix.c we use the define LONG_LONG_MAX. This is actually a non-standard pre-C99 define; switch to using the standard LLONG_MAX instead. This apparently fixes a compilation failure with certain compiler/OS versions (though it is unclear which). Reported-by: Peter Bartoli <peter@bartoli.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/raw-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c
index 6586a0c..b7f0f26 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -1192,7 +1192,7 @@ again:
if (size == 0)
#endif
#if defined(__APPLE__) && defined(__MACH__)
- size = LONG_LONG_MAX;
+ size = LLONG_MAX;
#else
size = lseek(fd, 0LL, SEEK_END);
#endif