Skip to content

Doesn't build when using netbsd curses on Linux #8087

@ericonr

Description

@ericonr

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions