diff options
Diffstat (limited to 'media-sound/mp3val/files')
-rw-r--r-- | media-sound/mp3val/files/mp3val-0.1.8-makefile.patch | 12 | ||||
-rw-r--r-- | media-sound/mp3val/files/mp3val-0.1.8-open.patch | 20 |
2 files changed, 22 insertions, 10 deletions
diff --git a/media-sound/mp3val/files/mp3val-0.1.8-makefile.patch b/media-sound/mp3val/files/mp3val-0.1.8-makefile.patch new file mode 100644 index 000000000000..8da20930602f --- /dev/null +++ b/media-sound/mp3val/files/mp3val-0.1.8-makefile.patch @@ -0,0 +1,12 @@ +--- a/Makefile.linux ++++ b/Makefile.linux +@@ -1,7 +1,7 @@ +-CXXFLAGS=-Wall -O2
++CXXFLAGS += -Wall
+
+ mp3val: main.o mpegparse.o out.o report.o crossapi.o crc.o
+- $(CXX) $(CXXFLAGS) $^ -o $@
++ $(CXX) $(LDFLAGS) $(CXXFLAGS) $^ -o $@
+
+ clean:
+ rm -f mp3val
diff --git a/media-sound/mp3val/files/mp3val-0.1.8-open.patch b/media-sound/mp3val/files/mp3val-0.1.8-open.patch index 2b844c1fac1e..499e23272387 100644 --- a/media-sound/mp3val/files/mp3val-0.1.8-open.patch +++ b/media-sound/mp3val/files/mp3val-0.1.8-open.patch @@ -1,11 +1,11 @@ ---- mp3val-0.1.8-src/crossapi.cpp.orig 2010-05-03 10:45:53.000000000 -0700 -+++ mp3val-0.1.8-src/crossapi.cpp 2017-02-19 23:38:21.000000000 -0000 +--- a/crossapi.cpp ++++ b/crossapi.cpp @@ -241,7 +241,7 @@ - //Moving failed due to different logical drives of source and destination. Let's copy: - id=open(szOldName,O_RDONLY); - if(id==-1) return 0; -- od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC); -+ od=open(szNewName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); - if(od==-1) { - close(id); - return 0; + //Moving failed due to different logical drives of source and destination. Let's copy:
+ id=open(szOldName,O_RDONLY);
+ if(id==-1) return 0;
+- od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
++ od=open(szNewName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
+ if(od==-1) {
+ close(id);
+ return 0;
|