summaryrefslogtreecommitdiff
path: root/addr2line.c
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 /addr2line.c
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
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/addr2line.c b/addr2line.c
index 219d1d4b47..961fca8577 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;