summaryrefslogtreecommitdiff
path: root/print/kcdlabel/files/patch-audiocd.h
blob: 45c723f47058109f938fcc771855959641bc5df6 (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
--- kcdlabel/audiocd.h.orig	Mon Dec 29 01:08:45 2003
+++ kcdlabel/audiocd.h	Mon Dec 29 02:15:45 2003
@@ -30,7 +30,12 @@
 #include <qobject.h>
 #include <qstring.h>
 
+#ifdef __FreeBSD__
+#include <sys/cdio.h>
+#define CDROM_LEADOUT	0xAA
+#else
 #include <linux/cdrom.h>		// specific to Linux !!! --> must be encapsulated in DEFINE IFDEF to enable compilation on other Un*x platforms...
+#endif
 
 /**Access all the audio CD functions and compute CDDB DiscID
   *@author Pascal 'PeP' Panneels
@@ -74,7 +79,11 @@
 	QString DiscID;				// CDDB DiscID
 	int cdromfd;				// device descriptor of the CDROM
 	unsigned int nr_tracks;	   	// # of tracks
+#ifdef __FreeBSD__
+	struct cd_toc_entry TOC[101];	// Table Of Content of the CD (max 99 tracks + lead-out + lead in)
+#else
 	struct cdrom_msf0 TOC[101];	// Table Of Content of the CD (max 99 tracks + lead-out + lead in)
+#endif
 	bool TOCAvailable;          // true when the TOC is available
 	unsigned long ulDiscID;		// computed disc id as an unsigned long
 	VectorIntType TrackOffsets;	// offsets of each track