Hi,

Samuel Thibault, le Sun 09 Apr 2006 23:42:12 +0200, a écrit :
> The current version of xblast fails to build on GNU/Hurd, because
> linux/soundcard.h is Linux specific. sys/soundcard.h should be included
> instead (Linux' libc also provide it). Please find attached a patch to
> fix that. It would be nice if you could include it in the next upload.

I forgot to attach the patch, here it is.

Regards,
Samuel
diff -ur xblast-2.6.1-orig/sound.c xblast-2.6.1/sound.c
--- xblast-2.6.1-orig/sound.c   2006-04-09 23:35:37.000000000 +0200
+++ xblast-2.6.1/sound.c        2006-04-09 23:37:16.000000000 +0200
@@ -109,11 +109,7 @@
 #include <sys/fcntl.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/soundcard.h>
-#else
-#include <linux/soundcard.h>
-#endif
 #include <signal.h>
 
 #include "include.h"
diff -ur xblast-2.6.1-orig/xbsndsrv.c xblast-2.6.1/xbsndsrv.c
--- xblast-2.6.1-orig/xbsndsrv.c        2006-04-09 23:35:37.000000000 +0200
+++ xblast-2.6.1/xbsndsrv.c     2006-04-09 23:39:33.000000000 +0200
@@ -110,11 +110,7 @@
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/soundcard.h>
-#else
-#include <linux/soundcard.h>
-#endif
 #include <signal.h>
 #include "sound.h"
 

Reply via email to