[PATCH] Fix compilation with ncurses-devel-6.1
NIIBE Yutaka
gniibe at fsij.org
Tue Jan 14 06:03:58 CET 2020
Hello,
Just my comment to explain the situation.
David Faure <faure at kde.org> wrote:
> --- a/pinentry/pinentry.h
> +++ b/pinentry/pinentry.h
> @@ -28,6 +28,8 @@ extern "C" {
> #endif
> #endif
>
> +#undef ttytype
> +
> typedef enum {
> PINENTRY_COLOR_NONE, PINENTRY_COLOR_DEFAULT,
> PINENTRY_COLOR_BLACK, PINENTRY_COLOR_RED,
> --
I haven't had any experience with Ncurses 6.1, thus, I checked the
possible cause.
I realized that when Ncurses is built with --enable-reentrant, the
symbol "ttytype" will be a macro (to access per thread variable), which
conflicts the use case of pinentry's "ttytype", as a member in a struct.
--
More information about the Gnupg-devel
mailing list