--- a/lib/err/errPosix.c +++ b/lib/err/errPosix.c @@ -29,6 +29,7 @@ #endif #include +#include #include #include --- a/lib/file/fileIOPosix.c +++ b/lib/file/fileIOPosix.c @@ -1746,7 +1746,7 @@ FileIOPreadvInternal( * the library horizon this can go away. */ /* coverity[func_conv] */ - if (preadv64 == NULL) { + if (0) { fret = FileIOPreadvCoalesced(fd, entries, numEntries, offset, totalSize, &bytesRead); break; @@ -1887,7 +1887,7 @@ FileIOPwritevInternal( * the library horizon this can go away. */ /* coverity[func_conv] */ - if (pwritev64 == NULL) { + if (0) { fret = FileIOPwritevCoalesced(fd, entries, numEntries, offset, totalSize, &bytesWritten); break; --- a/lib/hgfsServer/hgfsServerLinux.c +++ b/lib/hgfsServer/hgfsServerLinux.c @@ -32,6 +32,7 @@ #define _DARWIN_USE_64_BIT_INODE #endif +#include #include #include #include @@ -2566,7 +2567,7 @@ HgfsStatToFileAttr(struct stat *stats, # define FMTTIMET "l" # endif #else -# define FMTTIMET "l" +# define FMTTIMET PRId64 #endif LOG(4, "access: %"FMTTIMET"d/%"FMT64"u \nwrite: %"FMTTIMET"d/%"FMT64"u \n" "attr: %"FMTTIMET"d/%"FMT64"u\n", @@ -5294,7 +5295,7 @@ HgfsWriteCheckIORange(off_t offset, goto exit; } - LOG(6, "%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n", + LOG(6, "%s: File Size limits: 0x%llx 0x%llx\n", __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max); /* --- a/services/plugins/gdp/gdpPlugin.c +++ b/services/plugins/gdp/gdpPlugin.c @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #endif