summaryrefslogtreecommitdiffstats
path: root/src/libshout-1-fixes.patch
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2010-02-21 20:52:21 (GMT)
committerMark Brand <mabrand@mabrand.nl>2010-02-21 20:52:21 (GMT)
commit02e00fc4938df87d5e0d2e7e06fe9a24521c4697 (patch)
tree163b606fb2f9f42ad51111b3a38eabe43d69fb47 /src/libshout-1-fixes.patch
parentd3b037932984916f3f4e4b5697a09524dd008273 (diff)
downloadmxe-02e00fc4938df87d5e0d2e7e06fe9a24521c4697.zip
mxe-02e00fc4938df87d5e0d2e7e06fe9a24521c4697.tar.gz
mxe-02e00fc4938df87d5e0d2e7e06fe9a24521c4697.tar.bz2
new packages: liboil, libshout, gstreamer, gst-plugins-base and gst-plugins-good
Diffstat (limited to 'src/libshout-1-fixes.patch')
-rw-r--r--src/libshout-1-fixes.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/libshout-1-fixes.patch b/src/libshout-1-fixes.patch
new file mode 100644
index 0000000..11a6b74
--- /dev/null
+++ b/src/libshout-1-fixes.patch
@@ -0,0 +1,45 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -urN a/examples/nonblocking.c b/examples/nonblocking.c
+--- a/examples/nonblocking.c 2006-06-19 19:54:05.000000000 +0200
++++ b/examples/nonblocking.c 2010-02-21 19:55:04.834952292 +0100
+@@ -68,7 +68,11 @@
+
+ while (ret == SHOUTERR_BUSY) {
+ printf("Connection pending. Sleeping...\n");
++#ifdef __MINGW32__
++ Sleep(1000);
++#else
+ sleep(1);
++#endif
+ ret = shout_get_connected(shout);
+ }
+
+diff -urN a/include/os.h b/include/os.h
+--- a/include/os.h 2005-06-27 23:33:22.000000000 +0200
++++ b/include/os.h 2010-02-21 19:55:04.834952292 +0100
+@@ -1,7 +1,9 @@
+ #ifdef _WIN32
++#ifndef __MINGW32__
+ typedef __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+ typedef unsigned __int32 uint32_t;
+ typedef __int32 int32_t;
+ typedef int ssize_t;
+ #endif
++#endif
+diff -urN a/include/shout/shout.h.in b/include/shout/shout.h.in
+--- a/include/shout/shout.h.in 2005-06-27 23:33:21.000000000 +0200
++++ b/include/shout/shout.h.in 2010-02-21 20:14:04.762887368 +0100
+@@ -23,8 +23,10 @@
+
+ #include <sys/types.h>
+ #ifdef WIN32
++#ifndef __MINGW32__
+ #include <os.h>
+ #endif
++#endif
+
+ #define SHOUTERR_SUCCESS (0)
+ #define SHOUTERR_INSANE (-1)