summaryrefslogtreecommitdiff
path: root/giscanner/grealpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/grealpath.h')
-rw-r--r--giscanner/grealpath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/grealpath.h b/giscanner/grealpath.h
index 82d482a1..f5af7cb5 100644
--- a/giscanner/grealpath.h
+++ b/giscanner/grealpath.h
@@ -13,6 +13,9 @@ static inline gchar*
g_realpath (const char *path)
{
#ifndef _WIN32
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
char buffer [PATH_MAX];
if (realpath(path, buffer))
return g_strdup(buffer);