projects
/
gnome.gobject-introspection
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cdaea8
)
Bug 563382 - Define PATH_MAX if not available
author
Colin Walters
<walters@verbum.org>
Fri, 13 Feb 2009 20:10:21 +0000
(15:10 -0500)
committer
Colin Walters
<walters@verbum.org>
Thu, 19 Feb 2009 15:41:19 +0000
(10:41 -0500)
This fixes the build on Hurd. If anyone ever actually uses Hurd with
filenames longer than 4096, they can open a new bug.
giscanner/grealpath.h
patch
|
blob
|
history
diff --git
a/giscanner/grealpath.h
b/giscanner/grealpath.h
index
82d482a
..
f5af7cb
100644
(file)
--- 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);