audio/mp3val: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
2c8f27314d
commit
9f1f566505
|
@ -1,37 +0,0 @@
|
|||
diff -Naur mp3val-0.1.8-src/report.cpp mp3val-0.1.8-src.patched/report.cpp
|
||||
--- mp3val-0.1.8-src/report.cpp 2009-06-25 16:14:35.000000000 -0400
|
||||
+++ mp3val-0.1.8-src.patched/report.cpp 2014-09-21 15:24:24.000000000 -0400
|
||||
@@ -25,9 +25,9 @@
|
||||
|
||||
extern bool bSuppressInfo;
|
||||
|
||||
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame);
|
||||
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame);
|
||||
|
||||
-int PrintReport(ostream *out,char *filename,MPEGINFO *mpginfo) {
|
||||
+int PrintReport(ostream *out,const char *filename,MPEGINFO *mpginfo) {
|
||||
int frame_types=0;
|
||||
int mpeg_total;
|
||||
int tags_total;
|
||||
@@ -228,7 +228,7 @@
|
||||
|
||||
}
|
||||
|
||||
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame) {
|
||||
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame) {
|
||||
(*out)<<caption<<": ";
|
||||
if(iErrorFrame>=0) {
|
||||
(*out)<<"\""<<filename<<"\" (offset 0x"<<hex<<iErrorFrame<<dec<<"): ";
|
||||
diff -Naur mp3val-0.1.8-src/report.h mp3val-0.1.8-src.patched/report.h
|
||||
--- mp3val-0.1.8-src/report.h 2009-06-25 16:14:38.000000000 -0400
|
||||
+++ mp3val-0.1.8-src.patched/report.h 2014-09-21 15:24:15.000000000 -0400
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "mpegparse.h"
|
||||
|
||||
-int PrintReport(ostream *out,char *filename,MPEGINFO *mpginfo);
|
||||
-int PrintMessage(ostream *out,char *caption,char *filename,char *message,int iErrorFrame);
|
||||
+int PrintReport(ostream *out,const char *filename,MPEGINFO *mpginfo);
|
||||
+int PrintMessage(ostream *out,const char *caption,const char *filename,const char *message,int iErrorFrame);
|
||||
|
||||
#endif
|
Binary file not shown.
|
@ -64,7 +64,7 @@ chmod 644 *
|
|||
|
||||
# this isn't strictly necessary for Slack 14.1, but at some point these
|
||||
# warnings might possibly become errors in some future version of gcc.
|
||||
patch -p1 < $CWD/fix_compile_warnings.diff
|
||||
zcat $CWD/fix_compile_warnings.diff.gz | patch -p1
|
||||
|
||||
make -f Makefile.linux CXXFLAGS="$SLKCFLAGS"
|
||||
mkdir -p $PKG/usr/bin
|
||||
|
|
Loading…
Reference in New Issue