mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
twolame: fix gcc2 build.
This commit is contained in:
23
media-sound/twolame/patches/twolame-0.3.13.patchset
Normal file
23
media-sound/twolame/patches/twolame-0.3.13.patchset
Normal file
@@ -0,0 +1,23 @@
|
||||
From 294c0b700326ab24d1a793e81338a93aebb2e69e Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sat, 13 Sep 2014 18:02:16 +0200
|
||||
Subject: gcc2 fix.
|
||||
|
||||
|
||||
diff --git a/frontend/frontend.c b/frontend/frontend.c
|
||||
index f722955..3cdbf6c 100644
|
||||
--- a/frontend/frontend.c
|
||||
+++ b/frontend/frontend.c
|
||||
@@ -736,8 +736,8 @@ int main(int argc, char **argv)
|
||||
//
|
||||
mp2fill_size = twolame_encode_flush(encopts, mp2buffer, MP2_BUF_SIZE);
|
||||
if (mp2fill_size > 0) {
|
||||
- frame_count++;
|
||||
int bytes_out = fwrite(mp2buffer, sizeof(unsigned char), mp2fill_size, outputfile);
|
||||
+ frame_count++;
|
||||
if (bytes_out <= 0) {
|
||||
perror("error while writing to output file");
|
||||
exit(ERR_WRITING_OUTPUT);
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -13,6 +13,8 @@ REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="twolame-$portVersion.recipe"
|
||||
|
||||
PROVIDES="
|
||||
twolame$secondaryArchSuffix = $portVersion compat >= 0
|
||||
cmd:twolame
|
||||
|
||||
Reference in New Issue
Block a user