From d23850d33d4ccafcb3c600cec137d686dbc63ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Thu, 15 May 2014 21:33:20 +0200 Subject: [PATCH] Drop use of gettext from getopt.c. --- ChangeLog | 4 ++++ getopt.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3885dd4e..2a7c5845 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-05-15 Niels Möller <nisse@lysator.liu.se> + + * getopt.c: Don't use gettext. + 2014-05-14 Niels Möller <nisse@lysator.liu.se> * testsuite/nettle-pbkdf2-test: Avoid the bash construction diff --git a/getopt.c b/getopt.c index 2d481f1c..144a8b96 100644 --- a/getopt.c +++ b/getopt.c @@ -68,8 +68,9 @@ #ifdef _LIBC # include <libintl.h> #else -# include "gettext.h" -# define _(msgid) gettext (msgid) +/* The glibc version includes "gettext.h" here, but Nettle currently doesn't + have that. */ +# define _(msgid) msgid #endif #if defined _LIBC -- GitLab