]> 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/tests/testVmblock/vmblocktest.c

index c45f1b5500ca75d037f063a95f1cdfe1b3fbe16d..157a8507431f211fbc949f6a65bfb79229b98a98 100644 (file)
@@ -76,7 +76,7 @@
 #define THREAD_LOG(fmt, args...)   lprintf(" (%lx) " fmt, (unsigned long)pthread_self(), ## args)
 #define THREAD_ERROR(fmt, args...) lfprintf(stderr, " (%"FMTPID") " fmt, getpid(), ## args)
 
-#if defined (linux) || defined(__FreeBSD__)
+#if defined (__linux__) || defined(__FreeBSD__)
 # define os_thread_yield()      sched_yield()
 #elif defined(sun)
 # define os_thread_yield()      yield()