Merge master; fix crash on new film.
[dcpomatic.git] / src / lib / cross.cc
index 94e0d922cf72d5b95bad3a9dba07e78008151869..f232f1779dabc432445c5f1a6d44240f43c611bd 100644 (file)
 */
 
 #include "cross.h"
-#ifdef DVDOMATIC_WINDOWS
+#ifdef DCPOMATIC_POSIX
+#include <unistd.h>
+#endif
+#ifdef DCPOMATIC_WINDOWS
 #include "windows.h"
 #endif
 
 void
-dvdomatic_sleep (int s)
+dcpomatic_sleep (int s)
 {
-#ifdef DVDOMATIC_POSIX
+#ifdef DCPOMATIC_POSIX
        sleep (s);
 #endif
-#ifdef DVDOMATIC_WINDOWS
+#ifdef DCPOMATIC_WINDOWS
        Sleep (s * 1000);
 #endif
 }