summaryrefslogtreecommitdiff
path: root/audio/xmms-fmradio/patches/patch-ac
blob: 6005b11f2e482a5f15a99260ac4e25a3dea73e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$NetBSD: patch-ac,v 1.1.1.1 2002/01/06 06:50:35 jmcneill Exp $

--- radio.h.orig	Sun Jan  6 02:34:32 2002
+++ radio.h	Sun Jan  6 02:36:15 2002
@@ -45,11 +45,11 @@
 #include <math.h>
 
 #ifdef HAVE_SYS_SOUNDCARD_H
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 #include <sys/audioio.h>
 #else
 #include <sys/soundcard.h>
-#endif /* __OpenBSD__ */
+#endif /* __OpenBSD__ || __NetBSD__ */
 #else
 #ifdef HAVE_MACHINE_SOUNDCARD_H
 #include <machine/soundcard.h>
@@ -58,9 +58,9 @@
 
 #ifdef linux
 #include <linux/videodev.h>
-#elif defined __OpenBSD__
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
 #include <sys/radioio.h>
-#endif /* linux  || __OpenBSD__ */
+#endif /* linux  || __OpenBSD__ || __NetBSD__ */
 
 #include <fcntl.h>
 
@@ -94,10 +94,10 @@
 
 #define STR_LEN_MAX 80
 
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 #define GET_INFO	0
 #define SET_INFO	1
-#endif /* __OpenBSD__ */
+#endif /* __OpenBSD__ || __NetBSD__ */
 
 typedef struct
 {
@@ -108,9 +108,9 @@
 RadioConfig;
 
 extern RadioConfig radio_cfg;
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 extern struct radio_info ri;
-#endif /* __OpenBSD__ */
+#endif /* __OpenBSD__ || defined(__NetBSD__) */
 
 extern gint radio_fd;
 extern gint freq,volume;
@@ -121,8 +121,8 @@
 
 void radio_file_info_box(char *filename);
 
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 int SetGetRadioInfo(int);
-#endif /* __OpenBSD__ */
+#endif /* __OpenBSD__ || __NetBSD__ */
 
 #endif /* RADIO_H */