summaryrefslogtreecommitdiff
path: root/audio/libsndfile/files/patch-examples_sndfile-play.c
blob: ceecb8e27b52f314c3daddb2121e32c402f3eae1 (plain) (blame)
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
--- examples/sndfile-play.c.orig	Thu Oct 14 18:07:25 2004
+++ examples/sndfile-play.c	Thu Oct 14 18:11:13 2004
@@ -34,7 +34,7 @@
 	#include <sys/time.h>
 #endif
 
-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD__)
 	#include 	<fcntl.h>
 	#include 	<sys/ioctl.h>
 	#include 	<sys/soundcard.h>
@@ -326,7 +326,7 @@
 **	Linux/OSS functions for playing a sound.
 */
 
-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD__)
 
 static	int	linux_open_dsp_device (int channels, int srate) ;
 
@@ -869,7 +869,7 @@
 		return 1 ;
 		} ;
 
-#if defined (__linux__)
+#if defined (__linux__) || defined(__FreeBSD__)
 	#if HAVE_ALSA_ASOUNDLIB_H
 		if (access ("/proc/asound/cards", R_OK) == 0)
 			alsa_play (argc, argv) ;