diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-09-04 01:10:35 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-09-04 01:10:35 +0000 |
commit | 2e90023fc42e660569a20b41363eea134238b79c (patch) | |
tree | 9323835d7a6cb3e20ce3736603fb826a3b296182 /media-sound/orpheus/files | |
parent | Bump x11-misc/xosview to version 1.8.2. Closes #62758. Wipe out older ebuild. (diff) | |
download | historical-2e90023fc42e660569a20b41363eea134238b79c.tar.gz historical-2e90023fc42e660569a20b41363eea134238b79c.tar.bz2 historical-2e90023fc42e660569a20b41363eea134238b79c.zip |
Fixed compilation errors with gcc-3.4. Thanks to Bjarke Istrup Pedersen <Bjarke.ip@tekpunkt.dk> in bug #61223. Don't install ABOUT-NLS, COPYING and INSTALL doc files.
Diffstat (limited to 'media-sound/orpheus/files')
-rw-r--r-- | media-sound/orpheus/files/1.5-gcc34.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-sound/orpheus/files/1.5-gcc34.patch b/media-sound/orpheus/files/1.5-gcc34.patch new file mode 100644 index 000000000000..ba6c7f5af4bd --- /dev/null +++ b/media-sound/orpheus/files/1.5-gcc34.patch @@ -0,0 +1,41 @@ +diff -Naur old/src/mixerctl.cc new/src/mixerctl.cc +--- old/src/mixerctl.cc 2004-09-04 02:44:12.797543753 +0200 ++++ new/src/mixerctl.cc 2004-09-04 02:44:47.889365170 +0200 +@@ -50,7 +50,7 @@ + + if((fd = ::open(devname.c_str(), O_RDWR)) != -1) { + if(ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devmask) != -1) { +- for(ct = ctVolume; ct != channeltype_end; (int) ct += 1) { ++ for(ct = ctVolume; ct != channeltype_end; ct = (mixerctl::channeltype) (ct + 1)) { + if((1 << (int) ct) & devmask) { + channels.insert(ct); + } +diff -Naur old/src/uitext.cc new/src/uitext.cc +--- old/src/uitext.cc 2004-09-04 01:48:30.955457434 +0200 ++++ new/src/uitext.cc 2004-09-04 02:42:30.689719181 +0200 +@@ -577,14 +577,14 @@ + autosavepl = !autosavepl; + break; + case 41: +- if(++((int) playmode) == PlayMode_size) ++ if(((int) playmode + 1) == PlayMode_size) + playmode = Normal; + break; + case 42: + autoplay = !autoplay; + break; + case 43: +- if(++((int) sortorder) == SortOrder_size) ++ if(((int) sortorder + 1) == SortOrder_size) + sortorder = byFileName; + break; + case 44: +@@ -719,7 +719,7 @@ + while(!finished) { + m.clear(); + +- for(ct = mixerctl::ctVolume; ct != mixerctl::channeltype_end; (int) ct += 1) { ++ for(ct = mixerctl::ctVolume; ct != mixerctl::channeltype_end; ct = (mixerctl::channeltype) (ct + 1)) { + if(chavail.count(ct)) { + val = mix.readlevel(ct); + if(val >= 0) { |