Date: Thu, 3 Feb 2000 18:10:37 +0100 From: Alexander Langer <alex@big.endian.de> To: ports@freebsd.org Subject: fix for irc/kvirc (bentofied) Message-ID: <20000203181037.A91055@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
--qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Hello again :) This is just another patch to make it compile under -current. I wonder why it worked unter -stable, since my -stable machine does not know SNDCTL_DSP_CHANNELS. Weird. Alex -- I doubt, therefore I might be. --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="Makefile.diff" --- /usr/ports/irc/kvirc/Makefile Fri Dec 24 09:57:11 1999 +++ Makefile Thu Feb 3 17:13:46 2000 @@ -26,5 +26,6 @@ CONFIGURE_ARGS= --x-includes=$(X11BASE)/include --x-libraries=$(X11BASE)/lib \ --datadir=$(PREFIX)/share/kde CONFIGURE_ENV= MOC=${X11BASE}/bin/moc +CFLAGS+= -pedantic .include <bsd.port.mk> --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ab --- kviphone/kviphone.cpp.old Thu Feb 3 17:08:31 2000 +++ kviphone/kviphone.cpp Thu Feb 3 17:11:27 2000 @@ -326,7 +326,7 @@ static int fmt=KVI_FORMAT; if(ioctl(m_sound,SNDCTL_DSP_SETFMT,&fmt)<0)fatal("openSoundCardForWriting : Unsupported format"); static int chans=KVI_NUM_CHANNELS; - if(ioctl(m_sound,SNDCTL_DSP_CHANNELS,&chans)<0)fatal("openSoundCardForWriting : Unsupported channels number"); + if(ioctl(m_sound,SOUND_PCM_WRITE_CHANNELS,&chans)<0)fatal("openSoundCardForWriting : Unsupported channels number"); static int speed=KVI_SPEED; if(ioctl(m_sound,SNDCTL_DSP_SPEED,&speed)<0)fatal("openSoundCardForWriting : Unsupported sample rate"); } @@ -340,7 +340,7 @@ static int fmt=KVI_FORMAT; if(ioctl(m_sound,SNDCTL_DSP_SETFMT,&fmt)<0)fatal("openSoundCardForReading : Unsupported format"); static int chans=KVI_NUM_CHANNELS; - if(ioctl(m_sound,SNDCTL_DSP_CHANNELS,&chans)<0)fatal("openSoundCardForReading : Unsupported channels number"); + if(ioctl(m_sound,SOUND_PCM_READ_CHANNELS,&chans)<0)fatal("openSoundCardForReading : Unsupported channels number"); static int speed=KVI_SPEED; if(ioctl(m_sound,SNDCTL_DSP_SPEED,&speed)<0)fatal("openSoundCardForReading : Unsupported sample rate"); } --qMm9M+Fa2AknHoGS-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000203181037.A91055>