summaryrefslogtreecommitdiff
path: root/audio/xcdplayer/files/patch-cdrom__callb.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/xcdplayer/files/patch-cdrom__callb.c')
-rw-r--r--audio/xcdplayer/files/patch-cdrom__callb.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/audio/xcdplayer/files/patch-cdrom__callb.c b/audio/xcdplayer/files/patch-cdrom__callb.c
new file mode 100644
index 000000000000..7ccfe9477416
--- /dev/null
+++ b/audio/xcdplayer/files/patch-cdrom__callb.c
@@ -0,0 +1,33 @@
+
+$FreeBSD$
+
+--- cdrom_callb.c.orig Tue Jan 12 19:59:48 1993
++++ cdrom_callb.c Mon Aug 25 00:38:35 2003
+@@ -22,6 +22,9 @@
+
+ # include "debug.h"
+ # include "cdrom_globs.h"
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++# include "cdrom_freebsd.h"
++#endif
+ #ifdef sun
+ # include "cdrom_sun.h"
+ #endif
+@@ -29,6 +32,8 @@
+ # include "cdrom_sgi.h"
+ #endif
+
++extern AppData app_data;
++
+ void cdrom_new_disc();
+
+ /*
+@@ -287,7 +292,7 @@
+ * if playing less than replayThreshold seconds, back up to
+ * previous track; otherwise start at beginning of current track:
+ */
+- if (cdi.duration < replayThreshold)
++ if (cdi.duration < app_data.replayThreshold)
+ {
+ if ((cdi.program != NULL) &&
+ (cdi.state & CDROM_STATE_PLAY) &&