1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

win32 guards

This commit is contained in:
Jeff Becker 2019-05-01 11:36:20 -04:00
parent 6b2ad94731
commit aa5d4c17fe
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -1,8 +1,12 @@
#include <hook/shell.hpp>
#if defined(_WIN32)
/** put win32 stuff here */
#else
#include <util/threadpool.h>
#include <util/logger.hpp>
#include <sys/wait.h>
#include <unistd.h>
#endif
#if defined(Darwin)
#include <crt_externs.h>
#endif
@ -11,6 +15,13 @@ namespace llarp
{
namespace hooks
{
#if defined(_WIN32)
Backend_ptr
ExecShellBackend(std::string)
{
return nullptr;
}
#else
struct ExecShellHookJob
{
const std::string &m_File;
@ -132,5 +143,6 @@ namespace llarp
return nullptr;
return ptr;
}
#endif
} // namespace hooks
} // namespace llarp