Date: Sat, 5 Nov 2005 14:36:57 +0100 (CET) From: Juergen Lock <nox@jelal.kn-bremen.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/88522: fix emulators/qemu build on 4.x Message-ID: <200511051336.jA5DavQE057955@saturn.kn-bremen.de> Resent-Message-ID: <200511051350.jA5DoFW9061442@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88522 >Category: ports >Synopsis: fix emulators/qemu build on 4.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Nov 05 13:50:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Juergen Lock >Release: FreeBSD 5.3-RELEASE-p20 i386 >Organization: me? organized?? >Environment: System: FreeBSD saturn 5.3-RELEASE-p20 FreeBSD 5.3-RELEASE-p20 #1: Fri Jul 29 14:59:03 CEST 2005 nox@saturn:/usr/home/nox/src5/usr/src/sys/i386/compile/NEPTUN i386 >Description: fix 4.x build >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.4.2005092302/qemu-0.7.2s.20051030.log >Fix: New file: files/patch-audio-4 Index: files/patch-audio-4 @@ -0,0 +1,24 @@ +Index: qemu/audio/audio_template.h +@@ -32,6 +32,10 @@ + #define SW glue (SWVoice, In) + #endif + ++#ifndef UINT64_MAX ++#define UINT64_MAX ((uint64_t)(18446744073709551615ULL)) ++#endif ++ + static void glue (audio_pcm_sw_fini_, TYPE) (SW *sw) + { + glue (audio_pcm_sw_free_resources_, TYPE) (sw); +Index: qemu/audio/audio.c +@@ -36,6 +36,10 @@ + /* #define DEBUG_LIVE */ + /* #define DEBUG_OUT */ + ++#ifndef INT16_MAX ++#define INT16_MAX (32767) ++#endif ++ + static struct audio_driver *drvtab[] = { + #ifdef CONFIG_OSS + &oss_audio_driver, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511051336.jA5DavQE057955>