summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dln.c b/dln.c
index 3bb37f5..c42badc 100644
--- a/dln.c
+++ b/dln.c
@@ -60,8 +60,6 @@ void *xrealloc();
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
-#else
-# define MAXPATHLEN 1024
#endif
#ifdef HAVE_UNISTD_H
@@ -354,6 +352,10 @@ sym_hash(hdrp, syms)
return tbl;
}
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+#endif
+
static int
dln_init(prog)
const char *prog;