1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 16:46:38 +02:00

Rework some platform compatibility code.

This commit is contained in:
Sadie Powell
2024-02-29 19:07:18 +00:00
parent a67bef2dee
commit 190c37a68b
4 changed files with 7 additions and 12 deletions
+2 -5
View File
@@ -16,10 +16,7 @@
#include "logger.h"
#include "config.h"
#ifdef _AIX
# undef FD_ZERO
# define FD_ZERO(p) memset((p), 0, sizeof(*(p)))
#endif /* _AIX */
#include <thread>
static int MaxFD;
static unsigned FDCount;
@@ -97,7 +94,7 @@ void SocketEngine::Process()
*/
if (FDCount == 0)
{
sleep(tval.tv_sec);
std::this_thread::sleep_for(std::chrono::seconds(tval.tv_sec));
return;
}
#endif