summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-audio::audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/patch-audio::audio.c')
-rw-r--r--emulators/qemu-devel/files/patch-audio::audio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-audio::audio.c b/emulators/qemu-devel/files/patch-audio::audio.c
new file mode 100644
index 000000000000..0b50a522e6fd
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-audio::audio.c
@@ -0,0 +1,12 @@
+Index: qemu/audio/audio.c
+@@ -28,6 +28,10 @@
+
+ #include "audio/audio_int.h"
+
++#ifndef INT16_MAX
++#define INT16_MAX 0x7fff
++#endif
++
+ #define dolog(...) AUD_log ("audio", __VA_ARGS__)
+ #ifdef DEBUG
+ #define ldebug(...) dolog (__VA_ARGS__)