aboutsummaryrefslogtreecommitdiff
path: root/iconv/gconv_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/gconv_conf.c')
-rw-r--r--iconv/gconv_conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
index c448a16..7765efb 100644
--- a/iconv/gconv_conf.c
+++ b/iconv/gconv_conf.c
@@ -398,6 +398,10 @@ __gconv_read_conf (void)
elem = strtok_r (gconv_path, ":", &gconv_path);
while (elem != NULL)
{
+#ifndef MAXPATHLEN
+ /* We define a reasonable limit. */
+# define 4096
+#endif
char real_elem[MAXPATHLEN];
if (realpath (elem, real_elem) != NULL)