From ee5e4cf8e2d33a53e1c6ba1b4a3d457a90e0c81b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 11 Dec 2018 16:48:30 +0100 Subject: [PATCH] Use int tputs_arg_t on netbsd --- src/fallback.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fallback.h b/src/fallback.h index d3c624f98..108e416fe 100644 --- a/src/fallback.h +++ b/src/fallback.h @@ -46,7 +46,7 @@ int fish_mkstemp_cloexec(char *); /// 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. -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) || defined(__NetBSD__) typedef int tputs_arg_t; #else typedef char tputs_arg_t;