summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-08 14:31:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-08 14:31:56 +0000
commit4342469e8c5a32bc45b7748f5745b92b101901a1 (patch)
tree5ec991bfb813a46380b7d4c1d477ebcf570bdc7e
parentebe0280253dd02965f8a33227ee8b7b8745de9b0 (diff)
* addr2line.c (PATH_MAX): define if not defined. [ruby-core:40840]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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;