3 #include "../src/config.h"
10 #ifdef HAVE_SYS_TYPES_H
11 # include <sys/types.h>
18 #if defined(HAVE_SELECT)
20 #ifdef HAVE_SYS_SELECT_H
21 # include <sys/select.h>
25 wusleep(unsigned int microsecs
)
32 tv
.tv_sec
= microsecs
/ 1000000u;
33 tv
.tv_usec
= microsecs
% 1000000u;
34 select(1, &rd
, &wr
, &ex
, &tv
);
37 #else /* not HAVE_SELECT */
42 wusleep(unsigned int microsecs
)
44 poll((struct poll
*) 0, (size_t) 0, microsecs
/1000);
47 # else /* ! HAVE_POLL */
51 # endif /* !HAVE_POLL */
52 #endif /* !HAVE_SELECT */