This commit is contained in:
Benjamin Sergeant
2019-03-15 11:41:57 -07:00
parent 6ff8c6e7f3
commit 3a9cc9b079
7 changed files with 20 additions and 13 deletions

View File

@ -8,8 +8,10 @@
#if defined(__linux__)
# include <ixwebsocket/IXSelectInterruptEventFd.h>
#else
#elif defined(__APPLE__)
# include <ixwebsocket/IXSelectInterruptPipe.h>
#else
# include <ixwebsocket/IXSelectInterrupt.h>
#endif
namespace ix
@ -18,8 +20,10 @@ namespace ix
{
#if defined(__linux__)
return std::make_shared<SelectInterruptEventFd>();
#else
#elif defined(__APPLE__)
return std::make_shared<SelectInterruptPipe>();
#else
return std::make_shared<SelectInterrupt>();
#endif
}
}