audacity: fix gcc6 build
This commit is contained in:
parent
4b6ca5abde
commit
0f07141062
2 changed files with 21 additions and 1 deletions
20
srcpkgs/audacity/patches/fix-return_null.patch
Normal file
20
srcpkgs/audacity/patches/fix-return_null.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- src/import/ImportFLAC.cpp 2016-01-08 23:05:48.000000000 +0100
|
||||||
|
+++ src/import/ImportFLAC.cpp 2016-10-14 22:19:44.434290227 +0200
|
||||||
|
@@ -296,7 +296,7 @@
|
||||||
|
int cnt;
|
||||||
|
wxFile binaryFile;
|
||||||
|
if (!binaryFile.Open(filename)) {
|
||||||
|
- return false; // File not found
|
||||||
|
+ return NULL; // File not found
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef USE_LIBID3TAG
|
||||||
|
@@ -313,7 +313,7 @@
|
||||||
|
|
||||||
|
if (cnt == wxInvalidOffset || strncmp(buf, FLAC_HEADER, 4) != 0) {
|
||||||
|
// File is not a FLAC file
|
||||||
|
- return false;
|
||||||
|
+ return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open the file for import
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'audacity'
|
# Template file for 'audacity'
|
||||||
pkgname=audacity
|
pkgname=audacity
|
||||||
version=2.1.2
|
version=2.1.2
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-Audacity-${version}"
|
wrksrc="${pkgname}-Audacity-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-libsamplerate"
|
configure_args="--with-libsamplerate"
|
||||||
|
|
Loading…
Reference in a new issue