File: hurd.patch

package info (click to toggle)
libapache-db-perl 0.14-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108 kB
  • sloc: perl: 325; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
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
From: Ansgar Burchardt <ansgar@43-1.org>
Date: Wed, 18 Aug 2010 17:43:32 +0900
Origin: vendor
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=60458
Subject: Fix FTBFS on GNU/Hurd

Building Apache-DB on GNU/Hurd fails[1]:

  DB.xs: In function 'XS_DB_ApacheSIGINT':
  DB.xs:60: error: too many arguments to function 'ApacheSIGINT'

In /usr/lib/perl/5.10/CORE/iperlsys.h, Sighandler_t is defined to take three
arguments only when HAS_SIGACTION and SA_SIGINFO are defined.  This patch adds
these conditions to DB.xs as well.

[1] <https://buildd.debian.org/fetch.cgi?pkg=libapache-db-perl&arch=hurd-i386&ver=0.14-1&stamp=1281706853&file=log&as=raw>

--- libapache-db-perl.orig/DB.xs
+++ libapache-db-perl/DB.xs
@@ -56,7 +56,7 @@
 ApacheSIGINT(...)
 
     CODE:
-#if ((PERL_REVISION == 5) && (PERL_VERSION >= 10))
+#if ((PERL_REVISION == 5) && (PERL_VERSION >= 10)) && defined(HAS_SIGACTION) && defined(SA_SIGINFO)
     if (ApacheSIGINT) (*ApacheSIGINT)(SIGINT, NULL, NULL); 
 #else 
     if (ApacheSIGINT) (*ApacheSIGINT)(SIGINT);