-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
fish 3.3.0
I wanted to build fish locally, but had forgotten I had https://github.com/sabotage-linux/netbsd-curses installed instead of ncurses. It failed to build because
/// Under curses, tputs expects an int (*func)(char) as its last parameter, but in ncurses, tputs
/// expects a int (*func)(int) as its last parameter. tputs_arg_t is defined to always be what tputs
/// expects. Hopefully.
#if !defined(NCURSES_VERSION) || defined(__NetBSD__)
typedef int tputs_arg_t;
#else
typedef char tputs_arg_t;
#endif
doesn't cover this specific use case. Ideally it would be possible to run a proper test in CMakeLists and use the result of that? Not urgent, it's easy to fix locally, but still a build bug.