1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

Fix flac compilation

This commit is contained in:
Christophe Mutricy 2007-09-26 21:56:48 +00:00
parent 1c60a0f691
commit e7c2a27eea
2 changed files with 15 additions and 0 deletions

View File

@ -806,6 +806,9 @@ flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ)
ifneq ($(HOST),$(BUILD))
(patch -p0 < Patches/flac-cross.patch)
endif
ifdef HAVE_WIN32
patch -p0 < Patches/flac-win32.patch
endif
cd $@ && autoconf

View File

@ -0,0 +1,12 @@
diff -ur flac-1.2.1/include/share/alloc.h flac/include/share/alloc.h
--- flac-1.2.1/include/share/alloc.h 2007-09-12 06:32:21.000000000 +0100
+++ flac/include/share/alloc.h 2007-09-25 20:54:09.000000000 +0100
@@ -28,7 +28,7 @@
*/
#include <limits.h> /* for SIZE_MAX */
-#if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
+#if !defined _MSC_VER && !defined __EMX__
#include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */
#endif
#include <stdlib.h> /* for size_t, malloc(), etc */