diff options
-rw-r--r-- | giscanner/grealpath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/grealpath.h b/giscanner/grealpath.h index 82d482a..f5af7cb 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); |