Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/mit-krb5-appl/files: mit-krb5-appl-sig_t.patch
Date: Fri, 20 Jun 2014 09:51:43
Message-Id: 20140620095139.510DB2004F@flycatcher.gentoo.org
1 eras 14/06/20 09:51:39
2
3 Added: mit-krb5-appl-sig_t.patch
4 Log:
5 Fix build failure - bug #513762
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
8
9 Revision Changes Path
10 1.1 app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch?rev=1.1&content-type=text/plain
14
15 Index: mit-krb5-appl-sig_t.patch
16 ===================================================================
17 Bug #513762
18
19 From 4b45a32ba7c4f7b447919de6ce28a14150584290 Mon Sep 17 00:00:00 2001
20 From: Russ Allbery <rra@××××××××.edu>
21 Date: Wed, 21 Mar 2012 04:16:36 +0000
22 Subject: [PATCH] Move redeclaration of sig_t after all system includes
23
24 Move some internal messing about with sig_t done by gssftp/ftp/ftp_var.h
25 after the last system include to keep from stomping on system headers.
26 Required for kFreeBSD and Hurd.
27
28 git-svn-id: svn://anonsvn.mit.edu/krb5-appl/trunk@3331 dc483132-0cff-0310-8789-dd5450dbe970
29 ---
30 gssftp/ftp/ftp_var.h | 18 +++++++++---------
31 1 file changed, 9 insertions(+), 9 deletions(-)
32
33 diff --git a/gssftp/ftp/ftp_var.h b/gssftp/ftp/ftp_var.h
34 index 3efbdb1..e478961 100644
35 --- a/gssftp/ftp/ftp_var.h
36 +++ b/gssftp/ftp/ftp_var.h
37 @@ -53,15 +53,6 @@ FILE* fdopen_socket(SOCKET s, char* mode);
38 #define PERROR_SOCKET(str) perror(str)
39 #endif
40
41 -#ifdef _WIN32
42 -typedef void (*sig_t)(int);
43 -typedef void sigtype;
44 -#else
45 -#define sig_t my_sig_t
46 -#define sigtype krb5_sigtype
47 -typedef sigtype (*sig_t)();
48 -#endif
49 -
50 /*
51 * FTP global variables.
52 */
53 @@ -168,6 +159,15 @@ extern int macnum; /* number of defined macros */
54 extern struct macel macros[16];
55 extern char macbuf[4096];
56
57 +#ifdef _WIN32
58 +typedef void (*sig_t)(int);
59 +typedef void sigtype;
60 +#else
61 +#define sig_t my_sig_t
62 +#define sigtype krb5_sigtype
63 +typedef sigtype (*sig_t)();
64 +#endif
65 +
66 #ifdef DEFINITIONS
67 #undef extern
68 #endif
69 --
70 1.9.3