Date: Sat, 6 May 2000 09:29:57 -0700 From: Arun Sharma <adsharma@sharmas.dhs.org> To: bugs@kde.org Cc: freebsd-ports@freebsd.org Subject: kde2: arts - freebsd build breakage Message-ID: <20000506092957.A47610@sharmas.dhs.org>
next in thread | raw e-mail | index | archive | help
--ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii The attached patch fixes it. The patch is not clean - but should give you enough info on what needs to be fixed. -Arun --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch --- artsdsp.c- Sat May 6 09:20:34 2000 +++ artsdsp.c Sat May 6 09:26:38 2000 @@ -127,19 +127,21 @@ return sndfd; } -int ioctl (int fd, int request, char *argp) +int ioctl (int fd, unsigned long request, ...) { static int channels; static int bits; static int speed; + va_list argp; CHECK_INIT(); + va_start(argp, request); if (fd != sndfd) return orig_ioctl (fd, request, argp); else if (sndfd != -1) { - int *arg = (int *) argp; + int *arg = va_arg(argp, int *); artsdspdebug("aRts: hijacking /dev/dsp ioctl (%d : %x - %p)\n", fd, request, argp); @@ -187,6 +189,8 @@ return 0; } + + va_end(argp); return 0; } --ew6BAiZeqk4r7MaW-- 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?20000506092957.A47610>