aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-27 16:55:46 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-27 16:55:46 +0000
commitc99c729780a23d75aefb9ff73511892f1969f32a (patch)
tree3a4ddec7d4e6d5d261b7dda8e514b46cae3cf109
parent[w3m-dev 02572] _peekURL() bug (diff)
downloadw3m-c99c729780a23d75aefb9ff73511892f1969f32a.tar.gz
w3m-c99c729780a23d75aefb9ff73511892f1969f32a.zip
[w3m-dev 02571]
From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r--ChangeLog6
-rwxr-xr-xconfigure6
-rw-r--r--indep.c6
3 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fd4e21..2bbb9d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-28 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 02571] MAXPATHLEN
+ * indep.c (currentdir): #ifdef MAXPATHLEN for GNU Hurd
+ * configure: ditto
+
2001-11-27 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02572]
diff --git a/configure b/configure
index 3fc35cc..bc45262 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: configure,v 1.21 2001/11/26 09:59:16 ukai Exp $
+# $Id: configure,v 1.22 2001/11/27 17:00:41 ukai Exp $
# Configuration.
#
@@ -1271,8 +1271,12 @@ cat > _zmachdep.c << EOF
#include <unistd.h>
main()
{
+#ifdef MAXPATHLEN
char path[MAXPATHLEN];
getcwd(path,MAXPATHLEN);
+#else
+ gwtcwd(NULL, 0);
+#endif
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
diff --git a/indep.c b/indep.c
index 2842677..9284a39 100644
--- a/indep.c
+++ b/indep.c
@@ -1,4 +1,4 @@
-/* $Id: indep.c,v 1.11 2001/11/26 09:04:01 ukai Exp $ */
+/* $Id: indep.c,v 1.12 2001/11/27 16:55:46 ukai Exp $ */
#include "fm.h"
#include <stdio.h>
#include <pwd.h>
@@ -48,8 +48,12 @@ currentdir()
{
char *path;
#ifdef HAVE_GETCWD
+#ifdef MAXPATHLEN
path = NewAtom_N(char, MAXPATHLEN);
getcwd(path, MAXPATHLEN);
+#else
+ path = getcwd(NULL, 0);
+#endif
#else /* not HAVE_GETCWD */
#ifdef HAVE_GETWD
path = NewAtom_N(char, 1024);