mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
win32 guards
This commit is contained in:
parent
6b2ad94731
commit
aa5d4c17fe
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue