mirror of https://github.com/oxen-io/lokinet
NetBSDs don't fully implement POSIX.1-2001 (!!!)
This commit is contained in:
parent
6e93697214
commit
8741f0dd59
|
@ -7,7 +7,7 @@
|
|||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#if !defined(_WIN32) && !defined(__NetBSD__) && !defined(__OpenBSD__)
|
||||
#include <wordexp.h>
|
||||
#endif
|
||||
|
||||
|
@ -65,7 +65,7 @@ handle_signal_win32(DWORD fdwCtrlType)
|
|||
std::string
|
||||
resolvePath(std::string conffname)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
#if !defined(_WIN32) && !defined(__NetBSD__) && !defined(__OpenBSD__)
|
||||
wordexp_t exp_result;
|
||||
wordexp(conffname.c_str(), &exp_result, 0);
|
||||
char *resolvedPath = realpath(exp_result.we_wordv[0], NULL);
|
||||
|
|
Loading…
Reference in New Issue