[Title] There is no sleep function in mingw32
authorkt920.kim <kt920.kim@samsung.com>
Sat, 19 Nov 2011 05:14:29 +0000 (14:14 +0900)
committerkt920.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

index 119581b..74efd40 100644 (file)
@@ -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