uclibc: fix two more regressions introduced in 1.0.18
[buildroot-gz.git] / package / iprutils / 0001-iprutils-Don-t-use-gettext.patch
blob680bb07f5d8f4bc1f098e4c2baf6054d7da5a8df
1 From 4ce3545b704588c5889b8dd7b100fcdb88ae2e1a Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Wed, 17 Sep 2014 17:48:54 +0100
4 Subject: [PATCH] iprutils: Don't use gettext
6 ... since we don't have any translation.
8 Based on the former patch by Jeremy Kerr.
10 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 [Thomas: adapt to the new autotools build system.]
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 ---
14 configure.ac | 2 +-
15 iprconfig.h | 4 +---
16 2 files changed, 2 insertions(+), 4 deletions(-)
18 diff --git a/configure.ac b/configure.ac
19 index ee69bee..c1a4f70 100644
20 --- a/configure.ac
21 +++ b/configure.ac
22 @@ -137,7 +137,7 @@ AC_SUBST([IPRCONFIG_LIBS])
23 LIBS="$save_LIBS"
25 # Checks for header files.
26 -AC_CHECK_HEADERS([fcntl.h libintl.h locale.h netinet/in.h nl_types.h \
27 +AC_CHECK_HEADERS([fcntl.h locale.h netinet/in.h nl_types.h \
28 paths.h stddef.h stdint.h stdlib.h string.h sys/file.h \
29 sys/ioctl.h sys/mount.h sys/socket.h syslog.h \
30 unistd.h ncurses.h form.h menu.h], [],
31 diff --git a/iprconfig.h b/iprconfig.h
32 index 9bce950..751a737 100644
33 --- a/iprconfig.h
34 +++ b/iprconfig.h
35 @@ -11,9 +11,7 @@
37 **/
39 -#include <libintl.h>
41 -#define _(string) gettext(string)
42 +#define _(string) (string)
43 #define __(string) (string)
44 #define EXIT_FLAG 0x8000 /* stops at given screen on exit call */
45 #define CANCEL_FLAG 0x4000 /* stops at given screen on quit call */
46 --
47 2.6.4