Commit 13101dca authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contrib: Flac 1.1.4, patch for MingW32 compiling that was broken. Still issues on include/

parent 19460e5d
...@@ -701,6 +701,9 @@ flac-$(FLAC_VERSION).tar.gz: ...@@ -701,6 +701,9 @@ flac-$(FLAC_VERSION).tar.gz:
flac: flac-$(FLAC_VERSION).tar.gz flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
ifdef HAVE_WIN32
patch -p0 < Patches/flac-mingw32.patch
endif
ifneq ($(HOST),$(BUILD)) ifneq ($(HOST),$(BUILD))
(patch -p0 < Patches/flac-cross.patch && cd $@ && autoconf) (patch -p0 < Patches/flac-cross.patch && cd $@ && autoconf)
endif endif
......
diff -ruN flac.old/src/libFLAC/bitreader.c flac/src/libFLAC/bitreader.c
--- flac.old/src/libFLAC/bitreader.c 2007-02-17 04:34:31.000000000 +0100
+++ flac/src/libFLAC/bitreader.c 2007-02-17 04:35:31.000000000 +0100
@@ -37,6 +37,8 @@
#include <string.h> /* for memcpy(), memset() */
#if defined(_MSC_VER) && _MSC_VER <= 1200
#include <winsock.h> /* for ntohl() */
+#elif defined(__MINGW32__)
+#include <winsock.h> /* for ntohl() */
#elif defined FLAC__SYS_DARWIN
#include <machine/endian.h> /* for ntohl() */
#else
diff -ruN flac.old/src/libFLAC/bitwriter.c flac/src/libFLAC/bitwriter.c
--- flac.old/src/libFLAC/bitwriter.c 2007-02-17 04:34:31.000000000 +0100
+++ flac/src/libFLAC/bitwriter.c 2007-02-17 04:35:39.000000000 +0100
@@ -37,6 +37,8 @@
#include <string.h> /* for memcpy(), memset() */
#if defined(_MSC_VER) && _MSC_VER <= 1200
#include <winsock.h> /* for ntohl() */
+#elif defined(__MINGW32__)
+#include <winsock.h> /* for ntohl() */
#elif defined FLAC__SYS_DARWIN
#include <machine/endian.h> /* for ntohl() */
#else
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment