1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

audio/py-cddb: Fix build on DF (taken from dports)

This commit is contained in:
John Marino 2016-12-18 01:51:03 +00:00
parent cf66d495a8
commit ef1324e505
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428823

View File

@ -0,0 +1,20 @@
--- 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