Commit f0c757e431fa48248a411dc07dea98ce9be6a537
1 parent
b0ee3ff0
audio/ossaudio.c for OpenBSD, by Todd T. Fries.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2583 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
0 deletions
audio/ossaudio.c
| ... | ... | @@ -21,10 +21,15 @@ |
| 21 | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 22 | 22 | * THE SOFTWARE. |
| 23 | 23 | */ |
| 24 | +#include <stdlib.h> | |
| 24 | 25 | #include <sys/mman.h> |
| 25 | 26 | #include <sys/types.h> |
| 26 | 27 | #include <sys/ioctl.h> |
| 28 | +#ifdef __OpenBSD__ | |
| 29 | +#include <soundcard.h> | |
| 30 | +#else | |
| 27 | 31 | #include <sys/soundcard.h> |
| 32 | +#endif | |
| 28 | 33 | #include "vl.h" |
| 29 | 34 | |
| 30 | 35 | #define AUDIO_CAP "oss" | ... | ... |