aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cdrdao/files/patch-ac
blob: d7f69061adf86d3be2a80b498e1d337c71ee835b (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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
diff -rc ../old/cdrdao-1.1.4/configure ./configure
*** ../old/cdrdao-1.1.4/configure	Sun Aug 27 13:37:08 2000
--- ./configure	Fri Oct 20 10:32:47 2000
***************
*** 3234,3239 ****
--- 3234,3240 ----
    
    
  
+ xdao=no
  
  if test $xdao != xdao; then
    xdao=
***************
*** 3263,3269 ****
    scsi_if_src=ScsiIf-lib.cc
    
    case "$host" in
!     *-freebsd3* | *-freebsd4*)
  			       scsilib_libs="$scsilib_libs -lcam"
  			       ;;
    esac
--- 3264,3270 ----
    scsi_if_src=ScsiIf-lib.cc
    
    case "$host" in
!     *-freebsd3* | *-freebsd4* | *-freebsd5*)
  			       scsilib_libs="$scsilib_libs -lcam"
  			       ;;
    esac
***************
*** 3279,3285 ****
  	       scsi_if_src="ScsiIf-linux.cc sg_err.cc"
  	       ;;
      
!     *-freebsd3* | *-freebsd4*)
  			       scsi_if_src="ScsiIf-freebsd-cam.cc"
  			       scsilib_libs="-lcam"
  			       ;;
--- 3280,3286 ----
  	       scsi_if_src="ScsiIf-linux.cc sg_err.cc"
  	       ;;
      
!     *-freebsd3* | *-freebsd4* | *-freebsd5*)
  			       scsi_if_src="ScsiIf-freebsd-cam.cc"
  			       scsilib_libs="-lcam"
  			       ;;
***************
*** 3311,3317 ****
  esac
  
  case "$host" in
!   *-linux-*)
  	     sound_if_src=SoundIF-linux.cc
  	     ;;
  
--- 3312,3318 ----
  esac
  
  case "$host" in
!   *-linux-* | *-freebsd*)
  	     sound_if_src=SoundIF-linux.cc
  	     ;;
  
diff -rc ../old/cdrdao-1.1.4/xdao/SoundIF-linux.cc ./xdao/SoundIF-linux.cc
*** ../old/cdrdao-1.1.4/xdao/SoundIF-linux.cc	Sun Aug 27 13:37:11 2000
--- ./xdao/SoundIF-linux.cc	Fri Oct 20 10:32:22 2000
***************
*** 34,40 ****
--- 34,47 ----
   *
   */
  
+ # if defined(__FreeBSD__)
+ #include <machine/soundcard.h>
+ # if !defined(SNDCTL_DSP_CHANNELS)
+ #   define SNDCTL_DSP_CHANNELS SNDCTL_DSP_STEREO
+ # endif
+ # else 
  #include <linux/soundcard.h>
+ # endif
  
  #include <stdio.h>
  #include <assert.h>