Package: gimp-gap
Severity: important
Tags: patch

Hi,

The current version of gimp-gap fails to build on GNU/kFreeBSD, because
linux/soundcard.h is Linux specific. sys/soundcard.h should be included
instead on *BSD. Please find attached a patch to fix that. It would be
nice if you could include it in the next upload.

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

--- gimp-gap-2.0.2.orig/libwavplayclient/wpc_msg.c
+++ gimp-gap-2.0.2/libwavplayclient/wpc_msg.c
@@ -13,7 +13,12 @@
 #include <sys/msg.h>
 #include <sys/ioctl.h>
 #include <assert.h>
+#if defined(__linux__)
 #include <linux/soundcard.h>
+#endif
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/soundcard.h>
+#endif
 #include <wavplay.h>
 #include <wavfile.h>
 
--- gimp-gap-2.0.2.orig/libwavplayclient/client.c
+++ gimp-gap-2.0.2/libwavplayclient/client.c
@@ -58,7 +58,12 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <assert.h>
+#if defined(__linux__)
 #include <linux/soundcard.h>
+#endif
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/soundcard.h>
+#endif
 
 #include <glib.h>
 
--- gimp-gap-2.0.2.orig/libwavplayclient/msg.c
+++ gimp-gap-2.0.2/libwavplayclient/msg.c
@@ -55,7 +55,12 @@
 #include <sys/msg.h>
 #include <sys/ioctl.h>
 #include <assert.h>
+#if defined(__linux__)
 #include <linux/soundcard.h>
+#endif
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/soundcard.h>
+#endif
 #include "wavplay.h"
 
 /*

Reply via email to