aboutsummaryrefslogtreecommitdiff
path: root/emulators/open-vm-tools/files/patch-util_misc.c
blob: d46d150a3bc36c248d9fdbe7672345dae670110b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
@@ -292,7 +292,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();
@@ -319,7 +319,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)