summaryrefslogtreecommitdiff
path: root/sysutils/open-vm-tools/patches/patch-lib_misc_vthreadBase.c
blob: eb1d4eba715df178af8e9ca9717c2a3b9ed5be6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-lib_misc_vthreadBase.c,v 1.1 2018/01/01 06:56:01 ryoon Exp $

--- lib/misc/vthreadBase.c.orig	2017-12-15 19:09:51.000000000 +0000
+++ lib/misc/vthreadBase.c
@@ -352,6 +352,8 @@ VThreadBase_GetKernelID(void)
 #  endif
    // Best effort until FreeBSD header update
    return (uint64)(uintptr_t)(void *)pthread_self();
+#elif defined(__NetBSD__)
+   return (uint64)(uintptr_t)(void *)pthread_self();
 #else
 #  error "Unknown platform"
 #endif