Package: regionset
Version: 0.1-2
Severity: important
Tags: patch

Salut Josselin,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc -Wall -o regionset regionset.c dvd_udf.c
> dvd_udf.c:45:3: error: #error "Need the DVD ioctls"
> dvd_udf.c: In function 'UDFEntity':
> dvd_udf.c:257: warning: pointer targets in passing argument 2 of 'strncpy' 
> differ in signedness
> dvd_udf.c: In function 'UDFRPCGet':
> dvd_udf.c:633: warning: unused variable 'ret'
> dvd_udf.c: In function 'UDFRPCSet':
> dvd_udf.c:661: warning: unused variable 'ret'
> make[1]: *** [regionset] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=regionset>.

Please find attached a patch to fix this. I guess that one could want to
add another "|| defined(__FreeBSD__)" as well, since I guess that plain
FreeBSD has the same header.

Cheers,

-- 
Cyril Brulebois
--- regionset-0.1/dvd_udf.c	2007-03-16 15:49:05.599352000 +0100
+++ regionset-0.1/dvd_udf.c	2007-03-16 15:49:52.000000000 +0100
@@ -37,7 +37,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
 # include <sys/dvdio.h>
 #elif defined(__linux__)
 # include <linux/cdrom.h>

Reply via email to