Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/lcms/files: lcms-1.19-implicit.patch
Date: Fri, 24 Aug 2012 21:56:06
Message-Id: 20120824215547.51D2A20603@flycatcher.gentoo.org
1 dilfridge 12/08/24 21:55:47
2
3 Added: lcms-1.19-implicit.patch
4 Log:
5 Add patch from OpenSuSE to get rid of an implicit function declaration, bug 430372
6
7 (Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-libs/lcms/files/lcms-1.19-implicit.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/files/lcms-1.19-implicit.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/files/lcms-1.19-implicit.patch?rev=1.1&content-type=text/plain
14
15 Index: lcms-1.19-implicit.patch
16 ===================================================================
17 cmsio1.c: In function 'AdjustEndianessArray16':
18 cmsio1.c:118: warning: implicit declaration of function 'swab'
19 testcms.c: In function 'CheckSwab':
20 testcms.c:113: warning: implicit declaration of function 'swab'
21 ================================================================================
22 --- src/Makefile.am
23 +++ src/Makefile.am
24 @@ -6,6 +6,9 @@
25 # Don't require all the GNU mandated files
26 AUTOMAKE_OPTIONS = 1.7 foreign
27
28 +# _XOPEN_SOURCE is required for swab() but undefines strcasecmp(), so add _GNU_SOURCE as well:
29 +AM_CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE
30 +
31 includedir = ${prefix}/include
32
33 # Shared libraries built in this directory
34 --- src/cmsio1.c
35 +++ src/cmsio1.c
36 @@ -24,6 +24,7 @@
37
38
39 #include "lcms.h"
40 +#include <unistd.h>
41
42 // ----------------------------------------------------------------- Tag Serialization
43
44 --- testbed/Makefile.am
45 +++ testbed/Makefile.am
46 @@ -6,6 +6,9 @@
47 # Don't require all the GNU mandated files
48 AUTOMAKE_OPTIONS = 1.7 foreign
49
50 +# Required for swab()
51 +AM_CPPFLAGS = -D_XOPEN_SOURCE
52 +
53 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
54
55 check_PROGRAMS = testcms
56 --- testbed/testcms.c
57 +++ testbed/testcms.c
58 @@ -36,6 +36,7 @@
59 #include <time.h>
60 #include <stdio.h>
61 #include <stdlib.h>
62 +#include <unistd.h>
63
64 #ifndef NON_WINDOWS
65 #include <icm.h>