twolame: fix gcc2 build.

This commit is contained in:
Adrien Destugues
2014-09-13 18:04:00 +02:00
parent ae19b15ad9
commit 6bc01b90fe
2 changed files with 25 additions and 0 deletions

View 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

View File

@@ -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