kuser: Avoid conflicting macro definitions
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 21 Feb 2022 06:47:14 +0000 (19:47 +1300)
committerJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 3 May 2023 04:13:16 +0000 (16:13 +1200)
This avoids a conflict introduced in:

commit 78b3507131482d0a5d2c0b362a0970a6d0e4025d
Author: Nicolas Williams <nico@twosigma.com>
Date:   Wed Dec 15 16:17:52 2021 -0600

    kinit: Use optimistic anon PKINIT armored FAST

    Now that we can optimistically try FAST w/ anon PINIT armor, we should
    do so in kinit whenever it makes sense.

kuser/kuser_locl.h
lib/krb5/krb5_locl.h

index 8218a6f096fd91ebc396078713f74ad22430ad84..b1a097a8d6f7aea7e6ea062944fbc46dda119937 100644 (file)
 
 #ifdef LIBINTL
 #include <libintl.h>
+#undef N_
 #define N_(x,y) gettext(x)
+#undef NP_
 #define NP_(x,y) (x)
 #define getarg_i18n gettext
 #else
+#undef N_
 #define N_(x,y) (x)
+#undef NP_
 #define NP_(x,y) (x)
 #define getarg_i18n NULL
 #define bindtextdomain(package, localedir)
index 75ca24b667674799e447bdcbca32acf1a030c0d9..1b037cdcba3b52a940eb898ac36697c8607251f5 100644 (file)
@@ -88,8 +88,10 @@ struct mbuf;
 
 #ifdef LIBINTL
 #include <libintl.h>
+#undef N_
 #define N_(x,y) dgettext(HEIMDAL_TEXTDOMAIN, x)
 #else
+#undef N_
 #define N_(x,y) (x)
 #define bindtextdomain(package, localedir)
 #endif