Lucio Andrés Illanes Albornoz 220a24
diff -ru mpg123-1.25.10.orig/configure mpg123-1.25.10/configure
Lucio Andrés Illanes Albornoz 220a24
--- mpg123-1.25.10.orig/configure	2018-02-27 11:34:50.000000000 +0100
Lucio Andrés Illanes Albornoz 220a24
+++ mpg123-1.25.10/configure	2018-11-04 00:56:56.667103853 +0100
Lucio Andrés Illanes Albornoz 220a24
@@ -6497,6 +6497,10 @@
Lucio Andrés Illanes Albornoz 220a24
 #error Cygwin should use dlopen
Lucio Andrés Illanes Albornoz 220a24
 #endif
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 220a24
+#error midipix has dlopen(3)
Lucio Andrés Illanes Albornoz 220a24
+#endif
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
 #include <windows.h>
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
 int main() {
Lucio Andrés Illanes Albornoz 220a24
@@ -6595,7 +6599,7 @@
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
   fi
Lucio Andrés Illanes Albornoz 220a24
   if test x"$modules" = xenabled -a x"$have_dl" = xno; then
Lucio Andrés Illanes Albornoz 220a24
-    as_fn_error $? "Modules enabled but no runtime loader found! This will not work..." "$LINENO" 5
Lucio Andrés Illanes Albornoz 220a24
+    echo "Buggy modules detection... this should be properly fixed, someday..."
Lucio Andrés Illanes Albornoz 220a24
   fi
Lucio Andrés Illanes Albornoz 220a24
   if test x"$modules" = xauto; then
Lucio Andrés Illanes Albornoz 220a24
     if test x"$have_dl" = xyes; then
Lucio Andrés Illanes Albornoz 220a24
@@ -19133,7 +19137,7 @@
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
 # Check if we want Unicode for Win32. Cygwin does not need _wopen
Lucio Andrés Illanes Albornoz 220a24
-if test x$ac_cv_header_windows_h = xyes && test "x$host_os" != "xcygwin"; then
Lucio Andrés Illanes Albornoz 220a24
+if test x$ac_cv_header_windows_h = xyes && test "x$host_os" != "xcygwin" && test "x$host_os" != "xmidipix"; then
Lucio Andrés Illanes Albornoz 220a24
   win32_specific_codes=enabled
Lucio Andrés Illanes Albornoz 220a24
 else
Lucio Andrés Illanes Albornoz 220a24
   win32_specific_codes=disabled
Lucio Andrés Illanes Albornoz 220a24
diff -ru mpg123-1.25.10.orig/src/intsym.h mpg123-1.25.10/src/intsym.h
Lucio Andrés Illanes Albornoz 220a24
--- mpg123-1.25.10.orig/src/intsym.h	2018-02-27 11:26:38.000000000 +0100
Lucio Andrés Illanes Albornoz 220a24
+++ mpg123-1.25.10/src/intsym.h	2018-11-04 01:04:36.017552210 +0100
Lucio Andrés Illanes Albornoz 220a24
@@ -3,6 +3,7 @@
Lucio Andrés Illanes Albornoz 220a24
 /* Mapping of internal mpg123 symbols to something that is less likely to
Lucio Andrés Illanes Albornoz 220a24
    conflict in case of static linking. */
Lucio Andrés Illanes Albornoz 220a24
 #include "config.h"
Lucio Andrés Illanes Albornoz 220a24
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz 220a24
 #define COS9 INT123_COS9
Lucio Andrés Illanes Albornoz 220a24
 #define tfcos36 INT123_tfcos36
Lucio Andrés Illanes Albornoz 220a24
 #define pnts INT123_pnts
Lucio Andrés Illanes Albornoz 220a24
@@ -358,3 +359,4 @@
Lucio Andrés Illanes Albornoz 220a24
 #define strerror INT123_strerror
Lucio Andrés Illanes Albornoz 220a24
 #endif
Lucio Andrés Illanes Albornoz 220a24
 #endif
Lucio Andrés Illanes Albornoz 220a24
+#endif
Lucio Andrés Illanes Albornoz 220a24
diff -ru mpg123-1.25.10.orig/src/libout123/modules/win32.c mpg123-1.25.10/src/libout123/modules/win32.c
Lucio Andrés Illanes Albornoz 220a24
--- mpg123-1.25.10.orig/src/libout123/modules/win32.c	2018-02-27 11:26:38.000000000 +0100
Lucio Andrés Illanes Albornoz 220a24
+++ mpg123-1.25.10/src/libout123/modules/win32.c	2018-11-04 12:29:01.346944126 +0100
Lucio Andrés Illanes Albornoz 220a24
@@ -11,8 +11,27 @@
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
 #include "out123_int.h"
Lucio Andrés Illanes Albornoz 220a24
 #include <windows.h>
Lucio Andrés Illanes Albornoz 220a24
+#include <mmsystem.h>
Lucio Andrés Illanes Albornoz 220a24
 #include "debug.h"
Lucio Andrés Illanes Albornoz 220a24
 
Lucio Andrés Illanes Albornoz 220a24
+/* temporary stuffs :D */
Lucio Andrés Illanes Albornoz 220a24
+#define WAVE_MAPPER ((UINT)-1)
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
+#define WAVE_FORMAT_PCM 1
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
+#define INFINITE 0xffffffff
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
+#define WAVERR_BASE 32
Lucio Andrés Illanes Albornoz 220a24
+#define WAVERR_BADFORMAT (WAVERR_BASE + 0)
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
+#define MMSYSERR_BASE 0
Lucio Andrés Illanes Albornoz 220a24
+#define MMSYSERR_NOERROR 0
Lucio Andrés Illanes Albornoz 220a24
+#define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4)
Lucio Andrés Illanes Albornoz 220a24
+#define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6)
Lucio Andrés Illanes Albornoz 220a24
+#define MMSYSERR_NOMEM (MMSYSERR_BASE + 7)
Lucio Andrés Illanes Albornoz 220a24
+/* hello there! */
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
+
Lucio Andrés Illanes Albornoz 220a24
 /*
Lucio Andrés Illanes Albornoz 220a24
     Buffer size and number of buffers in the playback ring
Lucio Andrés Illanes Albornoz 220a24
     NOTE: This particular num/size combination performs best under heavy