File: 07_fix_perl_5.16_ftbfs.patch

package info (click to toggle)
libdevice-cdio-perl 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,248 kB
  • ctags: 2,564
  • sloc: ansic: 11,536; perl: 4,027; makefile: 69; sh: 3
file content (50 lines) | stat: -rw-r--r-- 1,407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From: Dominic Hargreaves <dom@earth.li>
Subject: Fix FTBFS with perl 5.16

Original credit to 'sander85'.

This is labelled in the Mageia SVN tree as fixing the build for
GCC 4.7, but it's actually fixing the build with perl 5.16. The
build succeeds without this patch with GCC 4.7 and perl 5.14.

Origin: http://svnweb.mageia.org/packages/cauldron/perl-Device-Cdio/current/SOURCES/perl-Device-Cdio-0.3.0-gcc-4.7.patch?revision=388352&view=markup
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=77579
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676272
Forwarded: yes

diff --git a/perlcdio_wrap.c b/perlcdio_wrap.c
index 66e8e5e..d3227f4 100644
--- a/perlcdio_wrap.c
+++ b/perlcdio_wrap.c
@@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
 
 
 #include <string.h>
+#include <stdbool.h>
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/perliso9660_wrap.c b/perliso9660_wrap.c
index 2270753..4ade706 100644
--- a/perliso9660_wrap.c
+++ b/perliso9660_wrap.c
@@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
 
 
 #include <string.h>
+#include <stdbool.h>
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/perlmmc_wrap.c b/perlmmc_wrap.c
index 04f6380..e618066 100644
--- a/perlmmc_wrap.c
+++ b/perlmmc_wrap.c
@@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
 
 
 #include <string.h>
+#include <stdbool.h>
 
 #ifdef __cplusplus
 extern "C" {