Merge from vendor branch TNF:
[pkgsrcv2.git] / sysutils / open-vm-tools / patches / patch-av
1 $NetBSD$
2
3 --- lib/include/util.h.orig     2008-08-08 02:01:52.000000000 -0500
4 +++ lib/include/util.h
5 @@ -55,7 +55,7 @@
6  /*
7   * Define the Util_ThreadID type.
8   */
9 -#if defined(__APPLE__) || defined(__FreeBSD__)
10 +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
11  #include <pthread.h>
12  typedef pthread_t Util_ThreadID;
13  #elif defined(_WIN32)
14 @@ -119,7 +119,7 @@ EXTERN char *Util_GetSafeTmpDir(Bool use
15  EXTERN int Util_MakeSafeTemp(ConstUnicode tag,
16                               Unicode *presult);
17  
18 -#if defined(__linux__) || defined(__FreeBSD__) || defined(sun)
19 +#if defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
20  EXTERN Bool Util_GetProcessName(pid_t pid, char *bufOut, size_t bufOutSize);
21  #endif
22