[kde-solaris] kdemultimedia and kmix compile problem.
Mats Rojestal
mats.rojestal at bredband.net
Fri Jul 22 14:53:33 CEST 2005
Hi,
I had problem compiling kmix/mixer_sun.cpp from svn
who chokes on a bad destructor.
The following patch fixes this problem.
--Mats R
Index: mixer_sun.cpp
===================================================================
--- mixer_sun.cpp (revision 437436)
+++ mixer_sun.cpp (working copy)
@@ -135,7 +135,7 @@
// FUNCTION : Mixer::Mixer
// DESCRIPTION : Class destructor.
//======================================================================
-Mixer_SUN::~Mixer_SUN(int devnum) : Mixer_Backend(devnum)
+Mixer_SUN::~Mixer_SUN()
{
close();
}
@@ -159,7 +159,7 @@
if(audiodev.isNull())
audiodev = "/dev/audio";
audiodev += "ctl";
- if ( ( fd = open( audiodev.data(), O_RDWR ) ) < 0 )
+ if ( ( fd = ::open( audiodev.data(), O_RDWR ) ) < 0 )
{
if ( errno == EACCES )
return Mixer::ERR_PERM;
More information about the kde-solaris
mailing list