Fix Windows build

This commit is contained in:
Anton Kochkov 2017-09-27 10:18:48 +08:00 committed by GitHub
parent a9b0912279
commit bd4ad8b0a4

View File

@ -235,7 +235,7 @@ R_API int r_socket_spawn (RSocket *s, const char *cmd, unsigned int timeout) {
eprintf ("r_socket_spawn: %s is dead\n", cmd);
exit (0);
}
sleep (1);
r_sys_sleep (1);
r_sys_usleep (timeout);
char aport[32];
sprintf (aport, "%d", port);