Package: gnomebaker
Severity: important
Tags: patch

Hi,

gnomebaker fails to build on GNU/kFreeBSD due to missing support. 
Please find attached a patch to fix that. Could you please add it in 
the next upload?

Don't hesitate to contact me if you need more information.

Thanks in advance,
Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32
Status: in BTS

--- gnomebaker-0.4.2.orig/src/devices.c
+++ gnomebaker-0.4.2/src/devices.c
@@ -32,7 +32,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/cdio.h>
 #define CDROM_DRIVE_STATUS     0x5326
 #define CDS_NO_DISC        1
@@ -684,13 +684,13 @@
 			
 
     /* Use ioctl to send the CDROMEJECT (CDIOCEJECT on FreeBSD) command to the device */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
 	if (ioctl(cdrom,CDIOCEJECT,0)<0)
 #else 
     if (ioctl(cdrom,CDROMEJECT,0)<0)    
 #endif    
 	{
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
         return TRUE;
 #else
         g_critical("devices_query_cdstatus - ioctl failed");

Reply via email to