source: build-files/ports-overlay/emulators/open-vm-tools/files/patch-util_misc.c @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 9 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 721 bytes
Line 
1--- lib/misc/util_misc.c.orig   2009-04-14 02:38:09.000000000 +0200
2+++ lib/misc/util_misc.c        2009-04-14 02:39:00.000000000 +0200
3@@ -292,7 +292,7 @@
4    return (strcmp(path1, path2) == 0);
5 #elif defined(_WIN32)
6    return (_stricmp(path1, path2) == 0);
7-#elif defined(__APPLE__)
8+#elif defined(__APPLE__) || defined(__FreeBSD__)
9    return (strcasecmp(path1, path2) == 0);
10 #else
11    NOT_IMPLEMENTED();
12@@ -319,7 +319,7 @@
13 Bool
14 Util_IsAbsolutePath(const char *path)  // IN: path to check
15 {
16-#if defined(__linux__) || defined(__APPLE__)
17+#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
18    // path[0] is valid even for the empty string.
19    return path && path[0] == DIRSEPC;
20 #elif defined(_WIN32)
Note: See TracBrowser for help on using the repository browser.