summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-29 11:42:28 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-07-29 11:42:28 +0000
commit4fb670718c1d51ad86bd47aacddb3e22328ded34 (patch)
treee07bf86f4274e3671d3ed87ab5d5a8c4f1613572 /sci-geosciences/gtk-g-rays2/files/gtk-g-rays2-1.20-locale_h.patch
parentVersion bump. (diff)
downloadhistorical-4fb670718c1d51ad86bd47aacddb3e22328ded34.tar.gz
historical-4fb670718c1d51ad86bd47aacddb3e22328ded34.tar.bz2
historical-4fb670718c1d51ad86bd47aacddb3e22328ded34.zip
Fix building with CFLAGS="-O0".
Package-Manager: portage-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.patch16
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",