]> git.sesse.net Git - mlt/blobdiff - src/melt/io.c
Add Mlt::Profile.list().
[mlt] / src / melt / io.c
index 8499a6cbda5dbdb11f3bcc866783299f594b574e..2c5a5b334411113b2f6684100c6b4368a99a3931 100644 (file)
@@ -29,6 +29,9 @@
 #include <ctype.h>
 #ifndef WIN32
 #include <termios.h>
+#else
+// MinGW defines struct timespec in pthread.h
+#include <pthread.h>
 #endif
 #include <unistd.h>
 #include <sys/time.h>
@@ -165,6 +168,9 @@ int term_read( )
             return ch;
         return n;
     }
+#else
+       struct timespec tm = { 0, 40000 };
+       nanosleep( &tm, NULL );
 #endif
     return -1;
 }