[PATCH] Fix compilation with ncurses-devel-6.1
David Faure
faure at kde.org
Sat Jan 11 21:24:29 CET 2020
Another one (I can't remember if I sent it already, sorry if I did)
>From 5d787a2ced5dffec75add2d07f5604c48d933b38 Mon Sep 17 00:00:00 2001
From: David Faure <faure at kde.org>
Date: Sun, 22 Jul 2018 23:56:48 +0200
Subject: [PATCH] Fix compilation with ncurses-devel-6.1
/usr/include/ncursesw/curses.h is evil and #defines ttytype.
---
pinentry/pinentry.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pinentry/pinentry.h b/pinentry/pinentry.h
index 009e884..59d4f48 100644
--- 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,
--
2.16.4
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
More information about the Gnupg-devel
mailing list