[Pkg-wmaker-commits] [wmcdplay] 45/79: wmcdplay: Build on the Hurd.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 11:04:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcdplay.

commit 276eb4d2fefa69b7d95760ae3af2a7da59d01ce2
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Dec 18 12:30:44 2014 -0600

    wmcdplay: Build on the Hurd.
    
    Fails to build from source on GNU/Hurd due to inclusion of a linux-specific
    header <linux/cdrom.h>. Instead include <sys/cdrom.h>.
    
    Patch by Samuel Thibault <sthibault at debian.org> [1], which fixes Debian bug
    
    [1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/patches/fix_hurd_ftbfs.patch/
    [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647964
---
 cdctl.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cdctl.h b/cdctl.h
index 0a008f2..a93619f 100644
--- a/cdctl.h
+++ b/cdctl.h
@@ -30,7 +30,12 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#ifdef __linux__
 #include <linux/cdrom.h>
+#endif
+#ifdef __GNU__
+#include <sys/cdrom.h>
+#endif
 
 // CD status values
 #define ssData     0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcdplay.git



More information about the Pkg-wmaker-commits mailing list