Linux ABI uses __linux__, not linux (deprecated).
/*********************************************************
- * Copyright (C) 2007-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2016,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
#ifndef _SYNCDRIVERIOC_H_
#define _SYNCDRIVERIOC_H_
-#ifdef linux
+#ifdef __linux__
# include <linux/ioctl.h>
/*********************************************************
- * Copyright (C) 2014-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2014-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
#endif // if defined _WIN32
-#if defined linux || defined _WIN32
+#if defined __linux__ || defined _WIN32
/*
******************************************************************************
* GuestInfoGetNicInfoIfIndex -- */ /**
return ret;
}
-#endif // if defined linux || defined _WIN32
+#endif // if defined __linux__ || defined _WIN32
/*
/*********************************************************
- * Copyright (C) 2014-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2014-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
TypedIpAddress *destIp); // OUT
#endif // if defined _WIN32
-#if defined linux || defined _WIN32
+#if defined __linux__ || defined _WIN32
Bool GuestInfoGetNicInfoIfIndex(NicInfoV3 *nicInfo, // IN
int ifIndex, // IN
int *nicIfIndex); // OUT
-#endif // if defined linux || defined _WIN32
+#endif // if defined __linux__ || defined _WIN32
void GuestInfoSockaddrToTypedIpAddress(const struct sockaddr *sa, // IN
TypedIpAddress *typedIp); // OUT
/*********************************************************
- * Copyright (C) 2009-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2009-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
static void
DestroyChannel();
-#if defined(VMX86_DEBUG) && defined(linux)
+#if defined(VMX86_DEBUG) && defined(__linux__)
static void
LogChannelType(const char *filePath, const char *chanType);
#endif
* VMAppmon unit tests. Changing this log message/file path
* will break the unit tests.
*/
- #if defined(VMX86_DEBUG) && defined(linux)
+ #if defined(VMX86_DEBUG) && defined(__linux__)
LogChannelType("/tmp/chanType.txt", (RpcChannel_GetType(gChan) == RPCCHANNEL_TYPE_BKDOOR ? "BACKDOOR" : "VSOCK"));
#endif
return start;
}
}
-#if defined(VMX86_DEBUG) && defined(linux)
+#if defined(VMX86_DEBUG) && defined(__linux__)
/*
******************************************************************************
* LogChannelType -- */ /**
/*********************************************************
- * Copyright (C) 2006-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-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
# endif
#endif
-#ifdef linux
+#ifdef __linux__
# ifndef __KERNEL__
# error "__KERNEL__ is not defined"
# endif
#if defined(__linux__) || defined(__APPLE__) || defined (sun)
-# ifdef linux /* if (linux) { */
+# ifdef __linux__ /* if (__linux__) { */
char *strdup(const char *source);
# endif
/*********************************************************
- * Copyright (C) 2006-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common
* Development and Distribution License (the "License") version 1.0
# endif
#endif
-#ifdef linux
+#ifdef __linux__
# ifndef __KERNEL__
# error "__KERNEL__ is not defined"
# endif
#if defined(__linux__) || defined(__APPLE__) || defined (sun)
-# ifdef linux /* if (linux) { */
+# ifdef __linux__ /* if (__linux__) { */
char *strdup(const char *source);
# endif
#endif /* _WIN32 */
#include "hgfsHelper.h"
-#ifdef linux
+#ifdef __linux__
#include "mntinfo.h"
#include <sys/vfs.h>
#endif
char *fileSystemType;
int i;
#endif
-#ifdef linux
+#ifdef __linux__
MNTHANDLE fp;
DECLARE_MNTINFO(mnt);
const char *mountfile = NULL;
/*********************************************************
- * Copyright (C) 2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2018-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
typedef unsigned __int64 uint64;
#endif
-#ifdef linux
+#ifdef __linux__
typedef __uint32_t uint32;
typedef __uint64_t uint64;
/*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,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
gboolean retval = FALSE;
int ret;
-#ifdef linux
+#ifdef __linux__
struct ucred peerCred;
socklen_t peerCredLen = sizeof peerCred;