Module: monitoring-plugins
    Branch: fix_check_if_enable_nls_is_available
    Commit: 02a0de3511d694b7a62997e3215566e3c060c0fc
    Author: Andreas Baumann <[email protected]>
 Committer: Lorenz Kästle <[email protected]>
      Date: Thu Jan 22 12:59:19 2026 +0100
       URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=02a0de35

common.h: added guard to avoid warning when ENABLE_NLS is not defined

---

 plugins/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/common.h b/plugins/common.h
index ef888d08..b3053486 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -193,7 +193,7 @@ enum {
  */
 #include "../gl/gettext.h"
 #define _(String) gettext(String)
-#if !ENABLE_NLS
+#if !defined(ENABLE_NLS) || !ENABLE_NLS
 #      undef textdomain
 #      define textdomain(Domainname) /* empty */
 #      undef bindtextdomain

Reply via email to