]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Convert linux to __linux__ in preprocessor statements.
authorOliver Kurth <okurth@vmware.com>
Fri, 2 Aug 2019 18:07:20 +0000 (11:07 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 2 Aug 2019 18:07:20 +0000 (11:07 -0700)
Linux ABI uses __linux__, not linux (deprecated).

open-vm-tools/lib/hgfsServer/hgfsServerLinux.c

index 6f28291ff27695d8705a763a8879c955b3109a39..880d4b8ecf919fddded4a7c5b64371d7a0a7baa6 100644 (file)
@@ -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;