[PATCH] curses: remove hard-wired ncursesw include path

Gergely Imreh imrehg at gmail.com
Wed Jun 24 11:52:56 CEST 2015


* pinentry/pinentry-curses.c: pkg-config finds the correct include
paths so should not hard-wire the path for the ncursesw header file.

---

Tested it with Buildroot, where the pinentry build fails due to the
fixed ncursesw header. See for example autobuilder results at
http://autobuild.buildroot.org/results/252/2528c7dfdc1ff9f0e6030ecfc22ff3acd26808e2/

---
 pinentry/pinentry-curses.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pinentry/pinentry-curses.c b/pinentry/pinentry-curses.c
index 784c770..659fa47 100644
--- a/pinentry/pinentry-curses.c
+++ b/pinentry/pinentry-curses.c
@@ -22,11 +22,7 @@
 #include <config.h>
 #endif
 #include <assert.h>
-#ifdef HAVE_NCURSESW
-#include <ncursesw/curses.h>
-#else
 #include <curses.h>
-#endif
 #include <signal.h>
 #include <fcntl.h>
 #include <unistd.h>
-- 
1.9.1



More information about the Gnupg-devel mailing list