Changes in uspace/lib/pcut/tests/timeout.c [9eb1ff5:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/timeout.c
r9eb1ff5 r582a0b8 29 29 #include <pcut/pcut.h> 30 30 31 #ifdef __helenos__ 31 #ifdef __unix 32 // FIXME 32 33 #include <thread.h> 33 #else34 #ifdef __unix35 #include <unistd.h>36 34 #endif 37 35 #if defined(__WIN64) || defined(__WIN32) || defined(_WIN32) 38 36 #include <windows.h> 39 #endif40 37 #endif 41 38 … … 44 41 45 42 static void my_sleep(int sec) { 46 #ifdef __helenos__ 43 #ifdef __unix 44 // FIXME 47 45 thread_sleep(sec); 48 #else49 #ifdef __unix50 sleep(sec);51 46 #endif 52 47 #if defined(__WIN64) || defined(__WIN32) || defined(_WIN32) 53 48 Sleep(1000 * sec); 54 #endif55 49 #endif 56 50 }
Note:
See TracChangeset
for help on using the changeset viewer.