shithub: libdvdcss

Download patch

ref: a985b4c89b17af19910e3972759f9a2c5c3a67bb
parent: 3b1e03fddcdc6bf40e472dd491fbb241b7dc6463
author: Christophe Massiot <[email protected]>
date: Tue Aug 30 05:48:19 EDT 2005

* src/device.c: Fixed compilation under Darwin.


--- a/src/device.c
+++ b/src/device.c
@@ -57,6 +57,7 @@
 
 #ifdef DARWIN_DVD_IOCTL
 #   include <paths.h>
+#   include <CoreFoundation/CoreFoundation.h>
 #   include <IOKit/IOKitLib.h>
 #   include <IOKit/IOBSD.h>
 #   include <IOKit/storage/IOMedia.h>
@@ -204,7 +205,7 @@
         return;
     }
 
-    classes_to_match = IOServiceMatching( psz_class );
+    classes_to_match = IOServiceMatching( kIODVDMediaClass );
     if( classes_to_match == NULL )
     {
         return;