# HG changeset patch # User michael # Date 1115645063 0 # Node ID aa52767bb802f07828a64ebe817d308b372cf28d # Parent 1fc7b1637f90c72f90ac08f894bbaf769f6d427b OpenBSD support patch by (Jacob Meuser // jakemsr jakemsr com) diff -r 1fc7b1637f90 -r aa52767bb802 audio.c --- a/audio.c Mon May 09 10:48:12 2005 +0000 +++ b/audio.c Mon May 09 13:24:23 2005 +0000 @@ -21,7 +21,11 @@ #include #include #include +#ifdef __OpenBSD__ +#include +#else #include +#endif #include #include #include @@ -49,7 +53,11 @@ /* open linux audio device */ if (!audio_device) +#ifdef __OpenBSD__ + audio_device = "/dev/sound"; +#else audio_device = "/dev/dsp"; +#endif if (is_output) audio_fd = open(audio_device, O_WRONLY);