mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-12 08:14:30 +02:00
19 lines
260 B
C++
19 lines
260 B
C++
#include "i2-base.h"
|
|
|
|
#if I2_PLATFORM == PLATFORM_UNIX
|
|
#include <ltdl.h>
|
|
|
|
using namespace icinga;
|
|
|
|
void Sleep(unsigned long milliseconds)
|
|
{
|
|
usleep(milliseconds * 1000);
|
|
}
|
|
|
|
void closesocket(SOCKET fd)
|
|
{
|
|
close(fd);
|
|
}
|
|
|
|
#endif /* I2_PLATFORM == PLATFORM_UNIX */
|