Linux ABI uses __linux__, not linux (deprecated).
/*********************************************************
- * 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
#include <sys/vnode.h> // for VERG / VDIR
#endif
-#ifdef linux
+#ifdef __linux__
typedef struct DirectoryEntry {
uint64 d_ino;
uint64 d_off;
if (sequentialOpen) {
error = 0; // No error from seek
} else {
-# ifdef linux
+# ifdef __linux__
{
uint64 res;
# if !defined(VM_X86_64)
MXUser_AcquireExclLock(session->fileIOLock);
if (!writeSequential) {
-# ifdef linux
+# ifdef __linux__
{
uint64 res;
# if !defined(VM_X86_64)
/*********************************************************
- * 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
#ifdef _WIN32
#define HZ 100
-#elif defined linux
+#elif defined __linux__
#include <asm/param.h>
#elif __APPLE__
#include <TargetConditionals.h>