$NetBSD: patch-ac,v 1.4 2003/01/07 06:30:36 rh Exp $ --- f_util.c.orig Mon Dec 2 17:05:47 2002 +++ f_util.c @@ -111,15 +111,15 @@ get_directory(direct) char *direct; { -#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) +#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) extern char *getcwd(); #else extern char *getwd(); -#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) */ +#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) */ -#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) +#if defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) if (getcwd(direct, PATH_MAX) == NULL) { /* get current working dir */ put_msg("Can't get current directory"); beep(); @@ -127,7 +127,7 @@ if (getwd(direct) == NULL) { /* get current working dir */ put_msg("%s", direct); /* err msg is in directory */ beep(); -#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) */ +#endif /* defined(SYSV) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__NetBSD__) */ *direct = '\0'; return 0; }