Add patch hurd.patch to fix build failure on hurd-i386; thanks to Samuel
[debian/cdck.git] / debian / patches / hurd.patch
1 Description: add support for building on hurd-i386
2 Origin: vendor
3 Bug-Debian: http://bugs.debian.org/647969
4 Forwarded: no
5 Author: Samuel Thibault <sthibault@debian.org>
6 Reviewed-by: gregor herrmann <gregoa@debian.org>
7 Last-Update: 2011-11-08
8
9 --- a/src/lib_cdinfo.cpp
10 +++ b/src/lib_cdinfo.cpp
11 @@ -25,7 +25,12 @@
12  #include <sys/time.h>
13  #include <stdlib.h>
14  
15 +#ifdef __linux__
16  #include <linux/cdrom.h>
17 +#endif
18 +#ifdef __GNU__
19 +#include <sys/cdrom.h>
20 +#endif
21  
22  #include "defines.h"
23  #include "debugging.h"
24 --- a/src/lib_main.cpp
25 +++ b/src/lib_main.cpp
26 @@ -19,7 +19,12 @@
27  #include <sys/time.h>
28  #include <stdlib.h>
29  
30 +#ifdef __linux__
31  #include <linux/cdrom.h>
32 +#endif
33 +#ifdef __GNU__
34 +#include <sys/cdrom.h>
35 +#endif
36  
37  #include "defines.h"
38  #include "debugging.h"