From: Oliver Kurth Date: Fri, 2 Aug 2019 18:07:19 +0000 (-0700) Subject: Convert linux to __linux__ in preprocessor statements. X-Git-Tag: stable-11.1.0~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac04412b75fe6564b4caed28fd39a1d2a11c1481;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 f2b7ce67e..6f28291ff 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2018 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -85,7 +85,7 @@ #include // for VERG / VDIR #endif -#ifdef linux +#ifdef __linux__ typedef struct DirectoryEntry { uint64 d_ino; uint64 d_off; @@ -4193,7 +4193,7 @@ HgfsPlatformReadFile(fileDesc file, // IN: file descriptor if (sequentialOpen) { error = 0; // No error from seek } else { -# ifdef linux +# ifdef __linux__ { uint64 res; # if !defined(VM_X86_64) @@ -4296,7 +4296,7 @@ HgfsPlatformWriteFile(fileDesc writeFd, // IN: file descriptor MXUser_AcquireExclLock(session->fileIOLock); if (!writeSequential) { -# ifdef linux +# ifdef __linux__ { uint64 res; # if !defined(VM_X86_64) diff --git a/open-vm-tools/lib/include/poll.h b/open-vm-tools/lib/include/poll.h index 6acd4f35f..ef9281b49 100644 --- a/open-vm-tools/lib/include/poll.h +++ b/open-vm-tools/lib/include/poll.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2018 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -49,7 +49,7 @@ extern "C" { #ifdef _WIN32 #define HZ 100 -#elif defined linux +#elif defined __linux__ #include #elif __APPLE__ #include