8 #ifdef HAVE_SYS_TYPES_H
9 # include <sys/types.h>
15 #if defined(HAVE_SELECT)
17 #ifdef HAVE_SYS_SELECT_H
18 # include <sys/select.h>
21 void wusleep(unsigned int microsecs
)
28 tv
.tv_sec
= microsecs
/ 1000000u;
29 tv
.tv_usec
= microsecs
% 1000000u;
30 select(1, &rd
, &wr
, &ex
, &tv
);
33 #else /* not HAVE_SELECT */
37 void wusleep(unsigned int microsecs
)
39 poll((struct poll
*)0, (size_t) 0, microsecs
/ 1000);
42 # else /* ! HAVE_POLL */
45 # endif /* !HAVE_POLL */
46 #endif /* !HAVE_SELECT */