diff options
author | YamaArashi <shadow962@live.com> | 2016-04-27 02:02:07 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-27 02:02:07 -0700 |
commit | fcfe6de1112c28e9ab5fbc4c1ea47275b3434368 (patch) | |
tree | faf67f1e615166f0124d8f983afb8eeb2e0a4cab /gcc/getpwd.c | |
parent | 0fd2209ea0d16df6b320fbac167dc20d89110cb2 (diff) |
remove more unused code
Diffstat (limited to 'gcc/getpwd.c')
-rwxr-xr-x | gcc/getpwd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c index f6d87b9..a6c6615 100755 --- a/gcc/getpwd.c +++ b/gcc/getpwd.c @@ -5,6 +5,10 @@ #if !( defined(_WIN32) && !defined(__CYGWIN__)) +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + /* Get the working directory. Use the PWD environment variable if it's set correctly, since this is faster and gives more uniform answers to the user. Yield the working directory if successful; otherwise, @@ -54,6 +58,8 @@ getpwd () #else /* _WIN32 && !__CYGWIN__ */ +#include <direct.h> + char * getpwd () { |