openbsd-ports/emulators/qemu/patches/patch-audio_ossaudio_c
todd 202b6aaad6 Import qemu snapshot from 2005-02-27
QEMU is a generic and open source processor emulator 
which achieves a good emulation speed by using dynamic translation.

QEMU has two operating modes:

* Full system emulation. In this mode, QEMU emulates 
a full system (for example a PC), including a processor and 
various peripherials. It can be used to launch different
Operating Systems without rebooting the PC or to debug system code.

* User mode emulation (Linux host only). In this mode, 

.. many thanks for feedback from many people, and for Lars Hansson and 
   Michael Schmidt for posting early work on the port of qemu to ports@

For now, only for macppc and i386, as these are currently the only archs
that have reported success building qemu.
QEMU can launch Linux processes compiled for one CPU on another CPU.
2005-03-07 16:41:28 +00:00

21 lines
539 B
Plaintext

$OpenBSD: patch-audio_ossaudio_c,v 1.1.1.1 2005/03/07 16:41:28 todd Exp $
--- audio/ossaudio.c.orig Mon Nov 15 04:51:33 2004
+++ audio/ossaudio.c Tue Feb 15 22:07:06 2005
@@ -21,10 +21,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifdef __OpenBSD__
+#include <stdlib.h>
+#include <soundcard.h>
+#else
+#include <sys/soundcard.h>
+#endif
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/soundcard.h>
#include <assert.h>
#include "vl.h"