Closed DimStar77 closed 4 years ago
(otoh I don't grasp yet where the definition would be coming from for gcc still trying to load config.h)
oh.. doh!
#ifdef HAVE_NCURSESW_CURSES_H
#include <ncursesw/curses.h>
#else
#include <curses.h>
#endif
so it's only a decision if cursesw or not - but loading a variant of curses.h is unconditional
Fixed by 8b10627adfe4f75b68a41b852ead8c269b16685b.
Even when fdupes 2.0.0 is configured using --without-ncurses, the build tries to include curses.h
config.h contains
#undef HAVE_NCURSESW_CURSES_H
- yet, AC_CONFIG_HEADER comments this out - and configure later on adds a#define NO_NCURSES
- but that in turn does not match what fdupes.c cares for to decide on#include <ncursesw/curses.h>