projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed9ea86
)
[Title] There is no sleep function in mingw32
author
kt920.kim
<kt920.kim@samsung.com>
Sat, 19 Nov 2011 05:14:29 +0000
(14:14 +0900)
committer
kt920.kim
<kt920.kim@samsung.com>
Sat, 19 Nov 2011 05:14:29 +0000
(14:14 +0900)
[Type] Bugfix
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
Uses _usleep function instead of sleep in Windows,
because the sleep function is not defined.
[Cause]
[Solution]
[TestCase]
target-i386/opengl_server.c
patch
|
blob
|
history
diff --git
a/target-i386/opengl_server.c
b/target-i386/opengl_server.c
index
119581b
..
74efd40
100644
(file)
--- a/
target-i386/opengl_server.c
+++ b/
target-i386/opengl_server.c
@@
-896,7
+896,12
@@
void *init_opengl_server(void *arg)
for(i=1;i<10;i++){
if( SLP_base_port != 0 )
break;
+#ifndef _WIN32
sleep(1);
+#else
+ /* microsecond */
+ _usleep(1000000);
+#endif
}
// set default values