cdrdao: added patch for gcc 4.3

This commit is contained in:
Simone Rota 2008-11-23 17:30:12 +01:00
parent 4c42463c2d
commit ae2b109d1d
3 changed files with 27 additions and 2 deletions

View File

@ -1 +1,2 @@
f0cbf36907406cb4f4c568f9e6669a34 cdrdao-1.2.2.tar.bz2
56bd397438f8fc8092839c99eb393eeb cdrdao-gcc.patch

View File

@ -6,11 +6,13 @@
name=cdrdao
version=1.2.2
release=1
source=(http://dl.sourceforge.net/sourceforge/cdrdao/cdrdao-$version.tar.bz2)
release=2
source=(http://dl.sourceforge.net/sourceforge/cdrdao/cdrdao-$version.tar.bz2 \
$name-gcc.patch)
build() {
cd $name-$version
patch -p1 < ../$name-gcc.patch
./configure --prefix=/usr --without-lame
make
mkdir -p $PKG/usr

22
cdrdao/cdrdao-gcc.patch Normal file
View File

@ -0,0 +1,22 @@
diff -Nru cdrdao-1.2.2.orig/trackdb/FormatConverter.cc cdrdao-1.2.2/trackdb/FormatConverter.cc
--- cdrdao-1.2.2.orig/trackdb/FormatConverter.cc 2008-11-23 17:20:52.036880285 +0100
+++ cdrdao-1.2.2/trackdb/FormatConverter.cc 2008-11-23 17:25:07.840291445 +0100
@@ -18,6 +18,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_AO
#include <ao/ao.h>
#endif
diff -Nru cdrdao-1.2.2.orig/trackdb/TempFileManager.cc cdrdao-1.2.2/trackdb/TempFileManager.cc
--- cdrdao-1.2.2.orig/trackdb/TempFileManager.cc 2008-11-23 17:20:52.036880285 +0100
+++ cdrdao-1.2.2/trackdb/TempFileManager.cc 2008-11-23 17:25:23.173215341 +0100
@@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
+#include <string.h>
#define DEFAULT_TEMP_PATH "/tmp/"