File: 15-fix-5.16-ftbfs.diff

package info (click to toggle)
libdate-pcalc-perl 6.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,896 kB
  • ctags: 620
  • sloc: perl: 16,706; ansic: 3,083; sh: 14; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 755 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
From: ANDK@cpan.org
Subject: The infamous boolean subtelty needed for perl 5.16

It has been predicted that D:C:XS would be affected but I did not read
it. The following patch works:

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=76442
Bug-Debian: https://bugs.debian.org/676270
Origin: https://rt.cpan.org/Public/Bug/Display.html?id=76425

--- a/src/C_XS/ToolBox.h       2009-10-16 23:47:55.000000000 +0200
+++ b/src/C_XS/ToolBox.h        2012-04-09 14:27:56.116897462 +0200
@@ -93,7 +93,10 @@
     #elif PERL_DARWIN
         #define boolean bool
     #else
-        typedef enum { false = FALSE, true = TRUE } boolean;
+        typedef int boolean;
+        #ifndef I_STDBOOL
+         enum { false, true };
+        #endif 
     #endif
 #endif