summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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",