icinga2/base/unix.cpp

19 lines
260 B
C++
Raw Normal View History

#include "i2-base.h"
#if I2_PLATFORM == PLATFORM_UNIX
#include <ltdl.h>
using namespace icinga;
void Sleep(unsigned long milliseconds)
{
usleep(milliseconds * 1000);
}
2012-04-02 10:29:08 +02:00
void closesocket(SOCKET fd)
{
close(fd);
}
#endif /* I2_PLATFORM == PLATFORM_UNIX */