24 lines
586 B
Plaintext
24 lines
586 B
Plaintext
|
$OpenBSD: patch-playdv_oss_c,v 1.1.1.1 2004/06/26 18:00:27 sturm Exp $
|
||
|
--- playdv/oss.c.orig 2002-12-31 15:03:42.000000000 -0800
|
||
|
+++ playdv/oss.c 2004-01-09 00:13:47.000000000 -0800
|
||
|
@@ -34,11 +34,19 @@
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <fcntl.h>
|
||
|
+#if HAVE_SYS_SOUNDCARD_H
|
||
|
#include <sys/soundcard.h>
|
||
|
+#else
|
||
|
+#include <soundcard.h>
|
||
|
+#endif
|
||
|
|
||
|
#include "oss.h"
|
||
|
|
||
|
+#if !defined(__OpenBSD__)
|
||
|
static const char *default_device = "/dev/dsp";
|
||
|
+#else
|
||
|
+static const char *default_device = "/dev/audio";
|
||
|
+#endif
|
||
|
|
||
|
#ifndef O_LARGEFILE
|
||
|
#define O_LARGEFILE 0
|