#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 *
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;