diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp index 254daea63ae..e4fa8d8a6b5 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp @@ -132,11 +132,11 @@ long get_duration(long val1, long val2) #ifdef LINUX #else -int usleep(unsigned int usec) +void usleep(unsigned int usec) { struct timeval val; - if (usec <= 0) return -1; + if (usec <= 0) return; val.tv_sec = usec / 1000000; val.tv_usec = usec % 1000000; if (select(0, NULL, NULL, NULL, &val) == -1 && errno != 4) @@ -144,7 +144,6 @@ int usleep(unsigned int usec) ACE_OS::perror ("sleep with select"); ACE_OS::exit (1); } - return 0; } #endif |