summaryrefslogtreecommitdiffstats
path: root/libavformat/img.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/img.c')
-rw-r--r--libavformat/img.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/img.c b/libavformat/img.c
index 139e0f4..f5c45f2 100644
--- a/libavformat/img.c
+++ b/libavformat/img.c
@@ -26,9 +26,13 @@
#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;
OpenPOWER on IntegriCloud