]> git.sesse.net Git - mlt/blobdiff - src/melt/io.c
Fix crash removing filter attached to a service.
[mlt] / src / melt / io.c
index 483952a901254a94176bb958ca6ec2bafdac30da..46b992b96c536cc553610ec77c0fd9914cf528d4 100644 (file)
@@ -32,6 +32,8 @@
 #else
 // MinGW defines struct timespec in pthread.h
 #include <pthread.h>
+// for nanosleep()
+#include <framework/mlt_types.h>
 #endif
 #include <unistd.h>
 #include <sys/time.h>
@@ -98,8 +100,10 @@ int *get_int( int *output, int use )
 /** This stores the previous settings
 */
 
+#ifndef WIN32
 static struct termios oldtty;
 static int mode = 0;
+#endif
 
 /** This is called automatically on application exit to restore the 
        previous tty settings.