Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/analog/files: analog-6.0-undefined-macro.patch
Date: Sun, 04 Mar 2012 10:28:02
Message-Id: 20120304102752.EFD3E2004C@flycatcher.gentoo.org
1 pacho 12/03/04 10:27:52
2
3 Added: analog-6.0-undefined-macro.patch
4 Log:
5 Fix compilation, bug #398617 by Marcin Kowalski.
6
7 (Portage version: 2.1.10.49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-admin/analog/files/analog-6.0-undefined-macro.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/analog/files/analog-6.0-undefined-macro.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/analog/files/analog-6.0-undefined-macro.patch?rev=1.1&content-type=text/plain
14
15 Index: analog-6.0-undefined-macro.patch
16 ===================================================================
17 --- a/src/unzip/ioapi.h 2004-12-19 14:51:32.000000000 +0100
18 +++ b/src/unzip/ioapi.h 2012-01-11 18:07:59.570768250 +0100
19 @@ -35,6 +35,16 @@
20 extern "C" {
21 #endif
22
23 +/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */
24 +#ifndef OF
25 +#ifdef __STDC__
26 +#define OF(x) x
27 +#else
28 +#define OF(x) ()
29 +#endif
30 +#endif
31 +
32 +
33 typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode));
34 typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size));
35 typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
36 --- a/src/unzip/unzip.h 2004-12-19 14:51:32.000000000 +0100
37 +++ b/src/unzip/unzip.h 2012-01-11 18:00:25.988120225 +0100
38 @@ -47,6 +47,15 @@
39 extern "C" {
40 #endif
41
42 +/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */
43 +#ifndef OF
44 +#ifdef __STDC__
45 +#define OF(x) x
46 +#else
47 +#define OF(x) ()
48 +#endif
49 +#endif
50 +
51 #ifndef _ZLIB_H
52 #include "../zlib/zlib.h"
53 #endif