FreeBSD compilation fixes. by arrowd · Pull Request #327 · linuxdeploy/linuxdeploy · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/plugin/CMakeLists.txt
4 changes: 4 additions & 0 deletions src/plugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ namespace linuxdeploy {

// also, look for plugins in current working directory
// could be useful in a "use linuxdeploy centrally, but download plugins into project directory" scenario
#ifdef _GNU_SOURCE
std::shared_ptr<char> cwd(get_current_dir_name(), free);
#else
std::shared_ptr<char> cwd(getcwd(nullptr, 0), free);
#endif
paths.emplace_back(cwd.get());

for (const auto& dir : paths) {
Expand Down
2 changes: 1 addition & 1 deletion src/subprocess/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <utility>
#include <unistd.h>
#include <memory.h>
#include <wait.h>
#include <sys/wait.h>
#include <sstream>

// local headers
Expand Down
7 changes: 7 additions & 0 deletions src/subprocess/util.cpp
Loading