openbsd-ports/multimedia/regionset/patches/patch-dvd_udf_c
oga 4ef53ca0cd Import regionset into the right place this time.
Original Log message:
    Import regionset. A simple tool for setting the region code on dvd
    drives.
    
    If you have a new dvd drive, sometimes they have no region set at all
    and won't play dvds until one is set. This solves that problem.
    
    ok okan@, looked over by a couple of others.
2008-01-03 19:30:16 +00:00

24 lines
553 B
Plaintext

$OpenBSD: patch-dvd_udf_c,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
--- dvd_udf.c.orig Thu Jan 3 02:58:08 2008
+++ dvd_udf.c Thu Jan 3 02:58:37 2008
@@ -38,7 +38,7 @@
#include <sys/stat.h>
#if defined(__OpenBSD__)
-# include <sys/dvdio.h>
+# include <sys/cdio.h>
#elif defined(__linux__)
# include <linux/cdrom.h>
#else
@@ -111,8 +111,8 @@ struct AD {
#define GETN(p, n, target) memcpy(target, &data[p], n)
#ifdef DVD_AUTH
- dvd_authinfo ai;
- dvd_struct dvds;
+ union dvd_authinfo ai;
+ union dvd_struct dvds;
int last_agid = 0;
#endif