Commit 675036e4 authored by Peter Maydell's avatar Peter Maydell Committed by Kevin Wolf
Browse files

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: default avatarPeter Bartoli <peter@bartoli.org>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent bb9cd2ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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