From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-geosciences/gtk-g-rays2/files: gtk-g-rays2-1.20-locale_h.patch |
Date: | Thu, 29 Jul 2010 11:42:32 |
Message-Id: | 20100729114228.B52662C5F2@corvid.gentoo.org |
1 | ssuominen 10/07/29 11:42:28 |
2 | |
3 | Added: gtk-g-rays2-1.20-locale_h.patch |
4 | Log: |
5 | Fix building with CFLAGS="-O0". |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: gtk-g-rays2-1.20-locale_h.patch |
15 | =================================================================== |
16 | Fix build failure with CFLAGS="-O0" and libc |
17 | messages.c:44:15: error: ‘LC_NUMERIC’ undeclared (first use in this function) |
18 | |
19 | --- src/messages.c |
20 | +++ src/messages.c |
21 | @@ -14,6 +14,10 @@ |
22 | #include <time.h> |
23 | #include "wbt201.h" |
24 | |
25 | +#ifdef HAVE_LOCALE_H |
26 | +#include <locale.h> |
27 | +#endif |
28 | + |
29 | static char *wmodes[] = { |
30 | /*0,1*/ NULL,NULL, |
31 | /*2,3*/ "low_speed_limit1", "high_speed_limit1", |