2009-10-22 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mono / utils / mono-path.c
index b2310f3cfbc238f1251143ab999c36479842e283..99e82ce71ae337ebee7efad7fead01fc6d7ec23d 100644 (file)
 
 #include "mono-path.h"
 
+/* Embedded systems lack MAXSYMLINKS */
+#ifndef MAXSYMLINKS
+#define MAXSYMLINKS 3
+#endif
+
 /* Resolves '..' and '.' references in a path. If the path provided is relative,
  * it will be relative to the current directory */
 gchar *
@@ -84,7 +89,7 @@ mono_path_canonicalize (const char *path)
 gchar *
 mono_path_resolve_symlinks (const char *path)
 {
-#if PLATFORM_WIN32
+#if defined(PLATFORM_NO_SYMLINKS)
        return mono_path_canonicalize (path);
 #else
        char *p, *concat, *dir;