NetBSDs don't fully implement POSIX.1-2001 (!!!)

This commit is contained in:
Rick V 2019-02-01 12:57:03 -06:00 committed by Rick V
parent 6e93697214
commit 8741f0dd59
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465
1 changed files with 2 additions and 2 deletions

View File

@ -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);