Skip to content
Snippets Groups Projects
port.c 272 B
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
#include <sys/types.h>
Alexandre Julliard's avatar
Alexandre Julliard committed
#include <sys/time.h>

#ifndef HAVE_USLEEP

unsigned int usleep (unsigned int useconds)
{
    struct timeval delay;

    delay.tv_sec = 0;
    delay.tv_usec = useconds;

Alexandre Julliard's avatar
Alexandre Julliard committed
    select( 0, 0, 0, 0, &delay );
Alexandre Julliard's avatar
Alexandre Julliard committed
    return 0;
}

#endif /* HAVE_USLEEP */