diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-29 11:42:28 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-29 11:42:28 +0000 |
commit | f23d46cecb34dff8c9b156c773625c2ebd8430aa (patch) | |
tree | 18daa8c5cc47a5f27955575954393249eb1d3744 /sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch | |
parent | Version bump. (diff) | |
download | gentoo-2-f23d46cecb34dff8c9b156c773625c2ebd8430aa.tar.gz gentoo-2-f23d46cecb34dff8c9b156c773625c2ebd8430aa.tar.bz2 gentoo-2-f23d46cecb34dff8c9b156c773625c2ebd8430aa.zip |
Fix building with CFLAGS="-O0".
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch')
-rw-r--r-- | sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch b/sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch new file mode 100644 index 000000000000..b88169630a7e --- /dev/null +++ b/sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch @@ -0,0 +1,16 @@ +Fix build failure with CFLAGS="-O0" and libc +messages.c:44:15: error: ‘LC_NUMERIC’ undeclared (first use in this function) + +--- src/messages.c ++++ src/messages.c +@@ -14,6 +14,10 @@ + #include <time.h> + #include "wbt201.h" + ++#ifdef HAVE_LOCALE_H ++#include <locale.h> ++#endif ++ + static char *wmodes[] = { + /*0,1*/ NULL,NULL, + /*2,3*/ "low_speed_limit1", "high_speed_limit1", |