diff options
author | Colin Walters <walters@verbum.org> | 2009-02-13 15:10:21 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-19 10:41:19 -0500 |
commit | 869de2e34b6344a82bb93ed2d38bd1cf5630a4f9 (patch) | |
tree | 0db91263784fd48bf698ab4c3dbd6abd4feab656 /giscanner/grealpath.h | |
parent | 8cdaea8b831797c69b19559faaf525b237d36258 (diff) | |
download | gobject-introspection-869de2e34b6344a82bb93ed2d38bd1cf5630a4f9.tar.gz |
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.
Diffstat (limited to 'giscanner/grealpath.h')
-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 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); |