diff options
| -rw-r--r-- | include/global.h | 1 | ||||
| -rw-r--r-- | src/eval.cc | 2 | ||||
| -rw-r--r-- | src/handler.cc | 2 | ||||
| -rw-r--r-- | src/path.cc | 3 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/global.h b/include/global.h index 3649b21..8ee0b87 100644 --- a/include/global.h +++ b/include/global.h @@ -11,7 +11,6 @@ inline int verbose =1; inline constexpr int MAXLINE = 1024; inline constexpr int MAXARGS = 128; - inline constexpr bool GLOBAL_DEBUG = true; inline constexpr std::string_view name = "ccshell"; diff --git a/src/eval.cc b/src/eval.cc index 7a72fff..0a73c0d 100644 --- a/src/eval.cc +++ b/src/eval.cc @@ -15,6 +15,8 @@ using namespace std; +extern char **environ; + namespace ov4 { diff --git a/src/handler.cc b/src/handler.cc index b98d839..a6945a3 100644 --- a/src/handler.cc +++ b/src/handler.cc @@ -6,8 +6,6 @@ namespace ov4 { -extern char **environ; - sigset_t block_sig_TTOU, block_job, diff --git a/src/path.cc b/src/path.cc index 9e4a515..1d14528 100644 --- a/src/path.cc +++ b/src/path.cc @@ -63,7 +63,8 @@ int set_current_dir(const string &s) string get_current_dir() { - return (string)(get_current_dir_name()); + char buf[MAXLINE]; + return (string)(getcwd(buf, MAXLINE)); } |
