diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-07-20 13:01:33 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-07-20 13:01:33 +0000 |
commit | 848dfdbbaa69b50f711db32052dacee2db252af7 (patch) | |
tree | 3d7456700cf90506155dcf34ebe3eb078f11c487 /security/gnupg | |
parent | 864445e5e812495b73e35849818c5c4f88f0f79f (diff) | |
download | ports-848dfdbbaa69b50f711db32052dacee2db252af7.tar.gz ports-848dfdbbaa69b50f711db32052dacee2db252af7.zip |
Notes
Diffstat (limited to 'security/gnupg')
-rw-r--r-- | security/gnupg/files/patch-agent_agent.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/security/gnupg/files/patch-agent_agent.h b/security/gnupg/files/patch-agent_agent.h new file mode 100644 index 000000000000..f4ea1bc9a6d5 --- /dev/null +++ b/security/gnupg/files/patch-agent_agent.h @@ -0,0 +1,41 @@ +From b3286af36d452fc801be573a057b0838d53a2edd Mon Sep 17 00:00:00 2001 +From: NIIBE Yutaka <gniibe@fsij.org> +Date: Fri, 10 Jul 2015 09:21:32 +0900 +Subject: [PATCH] agent: Support non-NLS build. + +* agent/agent.h: Use ENABLE_NLS and define L_() macro. + +-- + +GnuPG-bug-id: 2032 + +This is a fix for e76d4c05b24211f3981ab69cddb3fccc17d21e0e. +--- + agent/agent.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git agent/agent.h agent/agent.h +index 2948bff..5a09254 100644 +--- agent/agent.h ++++ agent/agent.h +@@ -300,6 +300,7 @@ typedef int (*lookup_ttl_t)(const char *hexgrip); + and uses that to translate a string according to the locale set for + the connection. The macro LunderscoreIMPL is used by i18n to + actually define the inline function when needed. */ ++#ifdef ENABLE_NLS + #define L_(a) agent_Lunderscore (ctrl, (a)) + #define LunderscorePROTO \ + static inline const char *agent_Lunderscore (ctrl_t ctrl, \ +@@ -312,6 +313,9 @@ typedef int (*lookup_ttl_t)(const char *hexgrip); + return ctrl? i18n_localegettext (ctrl->lc_messages, string) \ + /* */: gettext (string); \ + } ++#else ++#define L_(a) (a) ++#endif + + + /*-- gpg-agent.c --*/ +-- +2.1.4 + |