diff --git a/Source/Core/Common/UnixUtil.h b/Source/Core/Common/UnixUtil.h index f1b5fc136f..374126e403 100644 --- a/Source/Core/Common/UnixUtil.h +++ b/Source/Core/Common/UnixUtil.h @@ -4,13 +4,18 @@ #pragma once #include + +#if defined(__linux__) #include +#endif #include "Common/CommonFuncs.h" #include "Common/Logging/Log.h" namespace UnixUtil { + +#if defined(__linux__) inline int CreateEventFD(unsigned int count, int flags) { const int result = eventfd(count, flags); @@ -21,6 +26,7 @@ inline int CreateEventFD(unsigned int count, int flags) } return result; } +#endif // Repeatedly call a function that can erroneously produce EINTR. auto RetryOnEINTR(auto func, auto... args)