aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-02 03:19:35 +0000
committer_ov4 <ov4@ov4.org>2026-09-02 03:19:35 +0000
commit663c40e2d9299697697cb4e4ce767b344a7ad7ec (patch)
tree26be0faaa247b0c258b1d99d0d6b66d4ff45c1ce /src
parenta3d3f23d495054b2e97c696f6eccb8be9188d15f (diff)
posix
Diffstat (limited to 'src')
-rw-r--r--src/eval.cc2
-rw-r--r--src/handler.cc2
-rw-r--r--src/path.cc3
3 files changed, 4 insertions, 3 deletions
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));
}