freebsd-ports/audio/py-cddb/files/patch-unix_cdrommodule.c

20 lines
562 B
C

--- unix/cdrommodule.c.orig 2003-08-31 23:24:30 UTC
+++ unix/cdrommodule.c
@@ -29,7 +29,7 @@
#include <linux/cdrom.h>
#endif
-#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#endif
@@ -45,7 +45,7 @@
* so that we don't have to repeat the code.
*/
-#ifdef __FreeBSD__
+#if defined __FreeBSD__ || defined __DragonFly__
#define CDDB_TOC_HEADER_STRUCT ioc_toc_header
#define CDDB_STARTING_TRACK_FIELD starting_track