kconfig: Use ncurses location determined by ./configure

Prior to commit bbc4db13 ("kconfig: Sync with upstream v4.18") we used
the macros CURSES_LOC and MENU_LOC to tell us where curses.h and menu.h
were installed. Restore this behaviour so that we can deal with some of
the odd places that the curses headers end up.

Fixes #1403

Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2022-02-23 21:45:06 +13:00
parent 76d9b8c15c
commit 8ee3089202
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
#ifdef __sun__
#define CURS_MACROS
#endif
#include <ncurses.h>
#include CURSES_LOC
/*
* Colors in ncurses 1.9.9e do not work properly since foreground and

View File

@ -13,8 +13,8 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ncurses.h>
#include <menu.h>
#include CURSES_LOC
#include MENU_LOC
#include <panel.h>
#include <form.h>