Package: synaesthesia Version: 2.4-2 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hello, synaesthesia currently FTBFS on hurd-i386, due to inclusion of a linux-specific header <linux/cdrom.h>. The attached patch fixes it by including <sys/cdrom.h> instead, could you please apply it? Thanks, Samuel -- System Information: Debian Release: wheezy/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: hurd-i386 (i686-AT386) Kernel: GNU-Mach 1.3.99/Hurd-0.3 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -ur synaesthesia-2.4.orig/sound.cc synaesthesia-2.4/sound.cc --- synaesthesia-2.4.orig/sound.cc 2005-12-29 03:52:19.000000000 +0100 +++ synaesthesia-2.4/sound.cc 2011-11-08 01:46:45.000000000 +0100 @@ -34,17 +34,22 @@ #include <fcntl.h> #include <unistd.h> #include <signal.h> -#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) +#if defined(__linux__) #include <linux/soundcard.h> #include <linux/cdrom.h> //#include <linux/ucdrom.h> -#else +#endif +#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) #include <sys/soundcard.h> #include <sys/cdio.h> #define CDROM_LEADOUT 0xAA #define CD_FRAMES 75 /* frames per second */ #define CDROM_DATA_TRACK 0x4 #endif +#if defined (__GNU__) +#include <sys/soundcard.h> +#include <sys/cdrom.h> +#endif #include <time.h> #include <stdlib.h>