shithub: libdvdcss

Download patch

ref: 4f917a3a9e234b5ddc40d21b690a13628ce35657
parent: 41fb39a4f483037f32a9a8d5abb491fd6a902739
author: Sam Hocevar <[email protected]>
date: Fri Apr 5 20:11:05 EST 2002

* ./src/ioctl.c: OpenBSD compile fix. Thanks to ex0dus on #videolan.


--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 HEAD
 
+  * ./src/ioctl.c: OpenBSD compile fix. Thanks to ex0dus on #videolan.
   * ./src/libdvdcss.h: IRIX compile fix by Michael Pruett <[email protected]>.
   * ./configure.in: BeOS bug fix. I'm so lame.
   * ./src/ioctl.c: refuse to build if DVD ioctls weren't found.
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -2,7 +2,7 @@
  * ioctl.c: DVD ioctl replacement function
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ioctl.c,v 1.6 2002/04/04 23:44:20 gbazin Exp $
+ * $Id: ioctl.c,v 1.7 2002/04/06 01:11:05 sam Exp $
  *
  * Authors: Markus Kuespert <[email protected]>
  *          Samuel Hocevar <[email protected]>
@@ -1382,7 +1382,7 @@
 {
     int i_ret;
 
-#if defined( HAVE_LINUX_DVD_STRUCT ) && !defined(__OpenBSD__)
+#if defined( HAVE_LINUX_DVD_STRUCT ) && defined( DVD_LU_SEND_RPC_STATE )
     dvd_authinfo auth_info;
 
     memset( &auth_info, 0, sizeof( auth_info ) );
@@ -1393,6 +1393,10 @@
     *p_type = auth_info.lrpcs.type;
     *p_mask = auth_info.lrpcs.region_mask;
     *p_scheme = auth_info.lrpcs.rpc_scheme;
+
+#elif defined( HAVE_LINUX_DVD_STRUCT )
+    /* FIXME: OpenBSD doesn't know this */
+    i_ret = -1;
 
 #elif defined( HAVE_BSD_DVD_STRUCT )
     struct dvd_authinfo auth_info;