From: Oliver Kurth Date: Fri, 2 Aug 2019 18:07:20 +0000 (-0700) Subject: Convert linux to __linux__ in preprocessor statements. X-Git-Tag: stable-11.1.0~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e738e0e3dab43527e6af1fe4530a36646c2293a1;p=thirdparty%2Fopen-vm-tools.git Convert linux to __linux__ in preprocessor statements. Linux ABI uses __linux__, not linux (deprecated). --- diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c index 6f28291ff..880d4b8ec 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c @@ -2054,7 +2054,7 @@ HgfsGetSequentialOnlyFlagFromName(const char *fileName, // IN Bool followSymlinks, // IN: If true then follow symlink HgfsFileAttrInfo *attr) // IN/OUT { -#if defined(__linux) || defined(__APPLE__) +#if defined(__linux__) || defined(__APPLE__) int fd; int openFlags; @@ -2120,7 +2120,7 @@ static void HgfsGetSequentialOnlyFlagFromFd(int fd, // IN HgfsFileAttrInfo *attr) // IN/OUT { -#if defined(__linux) || defined(__APPLE__) +#if defined(__linux__) || defined(__APPLE__) int error; char buffer[2]; struct stat stats;