Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
Date: Fri, 27 Mar 2009 20:59:07
Message-Id: E1LnJ8r-0002lW-Uf@stork.gentoo.org
1 grobian 09/03/27 20:59:05
2
3 Modified: compat.c
4 Log:
5 don't define strcasestr static, that conflicts with gnulib's definition
6
7 Revision Changes Path
8 1.3 portage-utils/libq/compat.c
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.3&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.3&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?r1=1.2&r2=1.3
13
14 Index: compat.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
17 retrieving revision 1.2
18 retrieving revision 1.3
19 diff -u -r1.2 -r1.3
20 --- compat.c 12 Apr 2008 17:25:59 -0000 1.2
21 +++ compat.c 27 Mar 2009 20:59:05 -0000 1.3
22 @@ -9,7 +9,7 @@
23 #define S_BLKSIZE DK_DEVID_BLKSIZE
24
25 /* strcasestr is a GNU extention */
26 -static char* strcasestr(const char *big, const char *little) {
27 +char* strcasestr(const char *big, const char *little) {
28 char* b = alloca((strlen(big) + 1) * sizeof(char));
29 char* l = alloca((strlen(little) + 1) * sizeof(char));
30 char* off;