summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-24 12:36:01 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-24 12:36:01 +0000
commit0dcbeda434ef05f5725e176008fae05ad27ebcb9 (patch)
tree8cbab295b332b60f5693f92631b31f5747dc5d39 /dln.c
parent7f62113f4d4e29795561df9a0d52a6960e207252 (diff)
* dln.c: move the MAXPATHLEN definition in front.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dln.c b/dln.c
index c42badc..8fb8c48 100644
--- a/dln.c
+++ b/dln.c
@@ -61,6 +61,9 @@ void *xrealloc();
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
@@ -352,10 +355,6 @@ sym_hash(hdrp, syms)
return tbl;
}
-#ifndef MAXPATHLEN
-# define MAXPATHLEN 1024
-#endif
-
static int
dln_init(prog)
const char *prog;