os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
[ffmpeg.git] / libavformat / img.c
index 139e0f48af22113b43960d37dcc9af73b3ec1ed0..f5c45f2c63b01bae43260073563dc9085120be5d 100644 (file)
 #ifdef __BEOS__
 #  ifndef usleep
 #    include <OS.h>
-#    define usleep(t)    snooze((bigtime_t)(t))
+#    define usleep(t)  snooze((bigtime_t)(t))
 #  endif
 #endif
+#if defined(CONFIG_OS2)
+#  include <stdlib.h>
+#  define usleep(t)    _sleep2((t) / 1000)
+#endif
 
 typedef struct {
     int width;