Add patch hurd.patch to fix build failure on hurd-i386; thanks to Samuel
authorgregor herrmann <gregoa@debian.org>
Tue, 8 Nov 2011 17:09:03 +0000 (17:09 -0000)
committergregor herrmann <gregoa@debian.org>
Tue, 8 Nov 2011 17:09:03 +0000 (17:09 -0000)
Thibault for the bug report and the patch (closes: #647969.

debian/changelog
debian/patches/hurd.patch [new file with mode: 0644]
debian/patches/series

index 4e13ece622e32451015846f436aecfeed92ef9ba..3a3ea54826083d1f3540b13202d70ed3ec94926a 100644 (file)
@@ -1,3 +1,10 @@
+cdck (0.7.0-5) UNRELEASED; urgency=low
+
+  * Add patch hurd.patch to fix build failure on hurd-i386; thanks to Samuel
+    Thibault for the bug report and the patch (closes: #647969.
+
+ -- gregor herrmann <gregoa@debian.org>  Tue, 08 Nov 2011 18:07:52 +0100
+
 cdck (0.7.0-4) unstable; urgency=low
 
   * debian/control: fix typo in long description, thanks to Martin Eberhard
diff --git a/debian/patches/hurd.patch b/debian/patches/hurd.patch
new file mode 100644 (file)
index 0000000..060fc56
--- /dev/null
@@ -0,0 +1,38 @@
+Description: add support for building on hurd-i386
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/647969
+Forwarded: no
+Author: Samuel Thibault <sthibault@debian.org>
+Reviewed-by: gregor herrmann <gregoa@debian.org>
+Last-Update: 2011-11-08
+
+--- a/src/lib_cdinfo.cpp
++++ b/src/lib_cdinfo.cpp
+@@ -25,7 +25,12 @@
+ #include <sys/time.h>
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/cdrom.h>
++#endif
++#ifdef __GNU__
++#include <sys/cdrom.h>
++#endif
+ #include "defines.h"
+ #include "debugging.h"
+--- a/src/lib_main.cpp
++++ b/src/lib_main.cpp
+@@ -19,7 +19,12 @@
+ #include <sys/time.h>
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/cdrom.h>
++#endif
++#ifdef __GNU__
++#include <sys/cdrom.h>
++#endif
+ #include "defines.h"
+ #include "debugging.h"
index bcdd1ec568213b9083215d767748e0f671e8a817..827157455799d3291b074a8f924dfd717beb0019 100644 (file)
@@ -1,3 +1,4 @@
 man.patch
 libtool.patch
 wording.patch
+hurd.patch