From owner-freebsd-ports Thu Feb 3 9: 9:54 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.surf1.de (mail.Surf1.de [194.25.165.21]) by builder.freebsd.org (Postfix) with ESMTP id D24A74285 for ; Thu, 3 Feb 2000 09:09:49 -0800 (PST) Received: from cichlids.com (pC19F5498.dip0.t-ipconnect.de [193.159.84.152]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id SAA15864 for ; Thu, 3 Feb 2000 18:10:14 +0100 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id F0650AB98 for ; Thu, 3 Feb 2000 18:10:09 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id SAA91098 for ports@freebsd.org; Thu, 3 Feb 2000 18:10:37 +0100 (CET) (envelope-from alex) Date: Thu, 3 Feb 2000 18:10:37 +0100 From: Alexander Langer To: ports@freebsd.org Subject: fix for irc/kvirc (bentofied) Message-ID: <20000203181037.A91055@cichlids.cichlids.com> Mail-Followup-To: ports@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="qMm9M+Fa2AknHoGS" X-Mailer: Mutt 1.0i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --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 --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