Patch to allow flac to build on gcc4

This commit is contained in:
Scott McCreary
2010-09-20 20:59:43 +00:00
parent c4e819b9b2
commit 496573042b
2 changed files with 12 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ DEPEND="gettext >= 0.17"
BUILD {
cd flac-1.2.1
libtoolize --force --copy --install
./autogen.sh --prefix=/boot/common
./autogen.sh --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,11 @@
diff -urN flac-1.2.1/examples/cpp/encode/file/main.cpp flac-1.2.1-haiku/examples/cpp/encode/file/main.cpp
--- flac-1.2.1/examples/cpp/encode/file/main.cpp 2007-09-13 15:58:03.004718592 +0000
+++ flac-1.2.1-haiku/examples/cpp/encode/file/main.cpp 2010-09-20 12:47:33.520617984 +0000
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "FLAC++/metadata.h"
#include "FLAC++/encoder.h"