From 279c236c2e3ff8ba153b90d634ddd6581c7f1052 Mon Sep 17 00:00:00 2001 From: mbr Date: Tue, 14 Apr 2009 07:32:46 +0000 Subject: Fix shutdown problems with ESX 3.5 PR: ports/133717 Approved by: portsmgr Submitted by: Tatsumi Hosokawa --- emulators/open-vm-tools/Makefile | 2 +- emulators/open-vm-tools/files/patch-util_misc.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 emulators/open-vm-tools/files/patch-util_misc.c (limited to 'emulators') diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile index a1618e17a42f..f30970b4c28d 100644 --- a/emulators/open-vm-tools/Makefile +++ b/emulators/open-vm-tools/Makefile @@ -7,7 +7,7 @@ PORTNAME= open-vm-tools PORTVERSION= ${BUILD_VER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators kld MASTER_SITES= SF DISTNAME= open-vm-tools-${RELEASE_DATE}-${BUILD_VER} diff --git a/emulators/open-vm-tools/files/patch-util_misc.c b/emulators/open-vm-tools/files/patch-util_misc.c new file mode 100644 index 000000000000..287b9451f94e --- /dev/null +++ b/emulators/open-vm-tools/files/patch-util_misc.c @@ -0,0 +1,20 @@ +--- lib/misc/util_misc.c.orig 2009-04-14 02:38:09.000000000 +0200 ++++ lib/misc/util_misc.c 2009-04-14 02:39:00.000000000 +0200 +@@ -289,7 +289,7 @@ + return (strcmp(path1, path2) == 0); + #elif defined(_WIN32) + return (_stricmp(path1, path2) == 0); +-#elif defined(__APPLE__) ++#elif defined(__APPLE__) || defined(__FreeBSD__) + return (strcasecmp(path1, path2) == 0); + #else + NOT_IMPLEMENTED(); +@@ -316,7 +316,7 @@ + Bool + Util_IsAbsolutePath(const char *path) // IN: path to check + { +-#if defined(__linux__) || defined(__APPLE__) ++#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) + // path[0] is valid even for the empty string. + return path && path[0] == DIRSEPC; + #elif defined(_WIN32) -- cgit