w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit f057535fea06a8d2325dd13fe38739bc798696df
parent 1e9f568ee0eec4235a3fcd0fa07c87f7de8485ae
Author: ukai <ukai>
Date:   Tue, 27 Nov 2001 16:55:46 +0000

[w3m-dev 02571]
From: Fumitoshi UKAI <ukai@debian.or.jp>

Diffstat:
MChangeLog | 6++++++
Mconfigure | 4++++
Mindep.c | 4++++
3 files changed, 14 insertions(+), 0 deletions(-)

diff --git 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 @@ -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 @@ -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);