3 #include "../src/config.h"
11 #include <sys/select.h>
14 #ifdef HAVE_SYS_TYPES_H
15 # include <sys/types.h>
18 #if defined(HAVE_SELECT)
23 wusleep(unsigned int microsecs
)
30 tv
.tv_sec
= microsecs
/ 1000000u;
31 tv
.tv_usec
= microsecs
% 1000000u;
32 select(1, &rd
, &wr
, &ex
, &tv
);
35 #else /* not HAVE_SELECT */
40 wusleep(unsigned int microsecs
)
42 poll((struct poll
*) 0, (size_t) 0, microsecs
/1000);
45 # else /* ! HAVE_POLL */
49 # endif /* !HAVE_POLL */
50 #endif /* !HAVE_SELECT */