3 #include "../src/config.h"
10 #ifdef HAVE_SYS_TYPES_H
11 # include <sys/types.h>
15 #if defined(HAVE_SELECT)
17 #ifdef HAVE_SYS_SELECT_H
18 # include <sys/select.h>
22 wusleep(unsigned int microsecs
)
29 tv
.tv_sec
= microsecs
/ 1000000u;
30 tv
.tv_usec
= microsecs
% 1000000u;
31 select(1, &rd
, &wr
, &ex
, &tv
);
34 #else /* not HAVE_SELECT */
39 wusleep(unsigned int microsecs
)
41 poll((struct poll
*) 0, (size_t) 0, microsecs
/1000);
44 # else /* ! HAVE_POLL */
48 # endif /* !HAVE_POLL */
49 #endif /* !HAVE_SELECT */