diff options
author | Colin Walters <walters@verbum.org> | 2009-02-13 20:10:21 (GMT) |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-19 15:41:19 (GMT) |
commit | 869de2e34b6344a82bb93ed2d38bd1cf5630a4f9 (patch) | |
tree | 0db91263784fd48bf698ab4c3dbd6abd4feab656 | |
parent | 8cdaea8b831797c69b19559faaf525b237d36258 (diff) |
Bug 563382 - Define PATH_MAX if not available
This fixes the build on Hurd. If anyone ever actually uses Hurd with
filenames longer than 4096, they can open a new bug.
-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); |