#include <stdio.h>
+#ifdef __MINGW32__
+// This is broken, but allows the file to compile without a POSIX
+// environment.
+static unsigned int sleep(unsigned int secs) { return 0; }
+#else
+#include <unistd.h> // sleep()
+#endif
#include "sample_openal.hxx"
#include "soundmgr_openal.hxx"