diff options
author | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
commit | cae8fa8120c70195f34a2456f18c4c848a2d3e0c (patch) | |
tree | f7d3a3ab9c32694206552e767626366f016f2062 /contrib/gcc/getpwd.c | |
parent | 84656b55b6e25e30322dc903a05de53706361d3d (diff) | |
download | FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.zip FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.tar.gz |
Virgin import of the GCC 2.95.1 compilers
Diffstat (limited to 'contrib/gcc/getpwd.c')
-rw-r--r-- | contrib/gcc/getpwd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/gcc/getpwd.c b/contrib/gcc/getpwd.c index 947383e..c3d155e 100644 --- a/contrib/gcc/getpwd.c +++ b/contrib/gcc/getpwd.c @@ -2,7 +2,6 @@ #include "config.h" #include "system.h" -#include <sys/stat.h> /* Virtually every UN*X system now in common use (except for pre-4.3-tahoe BSD systems) now provides getcwd as called for by POSIX. Allow for @@ -20,9 +19,7 @@ #define GUESSPATHLEN 100 #endif /* (defined (USG) || defined (VMS)) */ -char *xmalloc (); - -#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN32__))) +#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__))) /* Get the working directory. Use the PWD environment variable if it's set correctly, since this is faster and gives more uniform answers @@ -70,7 +67,7 @@ getpwd () return p; } -#else /* VMS || _WIN32 && !__CYGWIN32__ */ +#else /* VMS || _WIN32 && !__CYGWIN__ */ #ifndef MAXPATHLEN #define MAXPATHLEN 255 @@ -90,4 +87,4 @@ getpwd () return pwd; } -#endif /* VMS || _WIN32 && !__CYGWIN32__ */ +#endif /* VMS || _WIN32 && !__CYGWIN__ */ |