repo.or.cz
/
wine
/
gsoc-2012-control.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 960114
[wine/gsoc-2012-control.git]
/
misc
/
port.c
blob
52ac9d971dadd90bb3835d354b5c9f12c2a12190
1
#include <unistd.h>
2
#include <sys/types.h>
3
#include <sys/time.h>
4
5
#ifndef HAVE_USLEEP
6
7
unsigned int
usleep
(
unsigned int
useconds
)
8
{
9
struct
timeval delay
;
10
11
delay
.
tv_sec
=
0
;
12
delay
.
tv_usec
=
useconds
;
13
14
(
void
)
select
(
0
, (
fd_set
*)
NULL
, (
fd_set
*)
NULL
, (
fd_set
*)
NULL
,
15
&
delay
);
16
return
0
;
17
}
18
19
#endif
/* HAVE_USLEEP */
20
21
22