Pullup ticket #3704.
[pkgsrcv2.git] / audio / xcdplayer / patches / patch-ae
1 $NetBSD: patch-ae,v 1.3 1999/09/06 16:37:42 tron Exp $
2
3 --- cdrom_callb.c.orig  Tue Jan 12 19:59:48 1993
4 +++ cdrom_callb.c       Mon Sep  6 18:37:05 1999
5 @@ -22,6 +22,9 @@
6  
7  # include "debug.h"
8  # include "cdrom_globs.h"
9 +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
10 +# include "cdrom_freebsd.h"
11 +#endif
12  #ifdef sun
13  # include "cdrom_sun.h"
14  #endif
15 @@ -29,6 +32,8 @@
16  # include "cdrom_sgi.h"
17  #endif
18  
19 +extern AppData app_data;
20 +
21  void           cdrom_new_disc();
22  
23  /*
24 @@ -287,7 +292,7 @@
25          * if playing less than replayThreshold seconds, back up to 
26          * previous track; otherwise start at beginning of current track:
27          */
28 -       if (cdi.duration < replayThreshold)
29 +       if (cdi.duration < app_data.replayThreshold)
30         {
31             if ((cdi.program != NULL) &&
32                  (cdi.state & CDROM_STATE_PLAY) &&