diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-02 00:33:19 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-02 00:33:19 +0100 |
| commit | 8c9688fff4446a1b0f5fe9a9be0c50084726cc4d (patch) | |
| tree | ca9a10be5795d976c0cbc73ad1111517bb4e22bf /nihil.posix/execv.ccm | |
| parent | 47999457e647352ae7e71d43c65e7b39ae5ca567 (diff) | |
| download | nihil-8c9688fff4446a1b0f5fe9a9be0c50084726cc4d.tar.gz nihil-8c9688fff4446a1b0f5fe9a9be0c50084726cc4d.tar.bz2 | |
CLI cleanups; fix the FreeBSD build
Diffstat (limited to 'nihil.posix/execv.ccm')
| -rw-r--r-- | nihil.posix/execv.ccm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nihil.posix/execv.ccm b/nihil.posix/execv.ccm index d598d94..cd501f7 100644 --- a/nihil.posix/execv.ccm +++ b/nihil.posix/execv.ccm @@ -3,6 +3,10 @@ module; #include <unistd.h> // execv() +#include "nihil.hh" + +extern char **environ; // NOLINT + export module nihil.posix:execv; import nihil.std; @@ -56,7 +60,7 @@ export struct execv final [&] (fd const &file) { #if NIHIL_HAVE_FEXECVE == 1 - ::fexecv(file.get(), self.m_args.data()); + ::fexecve(file.get(), self.m_args.data(), environ); return std::unexpected(error("execve failed", error(sys_error()))); #else std::ignore = file; |
