summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
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 c42badc73e..8fb8c4866b 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;