-#if (defined (__CYGWIN32__) || defined(__MINGW32__)) && \
- CYGWIN_VERSION_DLL_MAJOR < 21
-extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD);
-#else
-#include <mmsystem.h>
-#endif
-static void play_sound_data_1 (unsigned char *data, int length,
+#include "sysfile.h"
+#include "nt.h"
+#include "nativesound.h"
+
+static int play_sound_data_1 (unsigned char *data, int length,