diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-11-05 14:00:44 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-11-05 14:00:44 +0000 |
commit | b4846334d06058506338d29c438a8b72df0e7270 (patch) | |
tree | 3861300ef67158fd17fe1c500522d8d7f36eed24 /emulators | |
parent | Fix the PREFIX-safeness fix. (diff) |
Fix build on 4.x.
PR: ports/88522
Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=147372
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/qemu-devel/files/patch-audio-4 | 24 | ||||
-rw-r--r-- | emulators/qemu/files/patch-audio-4 | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-audio-4 b/emulators/qemu-devel/files/patch-audio-4 new file mode 100644 index 000000000000..bb71885a2992 --- /dev/null +++ b/emulators/qemu-devel/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, diff --git a/emulators/qemu/files/patch-audio-4 b/emulators/qemu/files/patch-audio-4 new file mode 100644 index 000000000000..bb71885a2992 --- /dev/null +++ b/emulators/qemu/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, |