@@ -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>
|
2001-11-27 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 02572]
|
* [w3m-dev 02572]
|
||||||
|
6
configure
vendored
6
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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.
|
# Configuration.
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -1271,8 +1271,12 @@ cat > _zmachdep.c << EOF
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
#ifdef MAXPATHLEN
|
||||||
char path[MAXPATHLEN];
|
char path[MAXPATHLEN];
|
||||||
getcwd(path,MAXPATHLEN);
|
getcwd(path,MAXPATHLEN);
|
||||||
|
#else
|
||||||
|
gwtcwd(NULL, 0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
|
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
|
||||||
|
6
indep.c
6
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 "fm.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
@@ -48,8 +48,12 @@ currentdir()
|
|||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
#ifdef HAVE_GETCWD
|
#ifdef HAVE_GETCWD
|
||||||
|
#ifdef MAXPATHLEN
|
||||||
path = NewAtom_N(char, MAXPATHLEN);
|
path = NewAtom_N(char, MAXPATHLEN);
|
||||||
getcwd(path, MAXPATHLEN);
|
getcwd(path, MAXPATHLEN);
|
||||||
|
#else
|
||||||
|
path = getcwd(NULL, 0);
|
||||||
|
#endif
|
||||||
#else /* not HAVE_GETCWD */
|
#else /* not HAVE_GETCWD */
|
||||||
#ifdef HAVE_GETWD
|
#ifdef HAVE_GETWD
|
||||||
path = NewAtom_N(char, 1024);
|
path = NewAtom_N(char, 1024);
|
||||||
|
Reference in New Issue
Block a user