summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--addr2line.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cdf7c61528..2a232ce9311 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Nov 8 23:30:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * addr2line.c (PATH_MAX): define if not defined. [ruby-core:40840]
+
Tue Nov 8 23:26:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/tk/tcltklib.c (rb_thread_critical): fix type.
diff --git a/addr2line.c b/addr2line.c
index 219d1d4b476..961fca8577e 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -68,6 +68,9 @@
# define ElfW(x) Elf32##_##x
# endif
#endif
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
typedef struct {
const char *dirname;