summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-08 22:51:41 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-08 22:51:41 +0200
commit1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch)
treea21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch
downloadmeta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch')
-rw-r--r--meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch b/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch
new file mode 100644
index 000000000..5cbcb08e8
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch
@@ -0,0 +1,25 @@
1Apparently somewhere along the line HAVE_LOCALE_H was changed to
2HAVE_LC_MESSAGES. Adjust netcat to match.
3
4Upstream-Status: Pending
5
6Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
7
8Index: netcat-0.7.1/src/intl.h
9===================================================================
10--- netcat-0.7.1.orig/src/intl.h
11+++ netcat-0.7.1/src/intl.h
12@@ -25,11 +25,11 @@
13 #ifdef ENABLE_NLS
14 #include <libintl.h>
15
16-#ifdef HAVE_LOCALE_H
17+#if defined(HAVE_LC_MESSAGES) || defined(HAVE_LOCALE_H)
18 #include <locale.h>
19 #else
20 #error You must have locale.h in your system
21-#endif /* HAVE_LOCALE_H */
22+#endif /* HAVE_LC_MESSAGES || HAVE_LOCALE_H */
23
24 /* Our dear (and very common) gettext macros */
25 #define _(String) gettext(String)