From a3e56a057ee16d631869c9e0c4801128e4a211c9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 9 Mar 2026 14:21:58 +0100 Subject: [PATCH] gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS --- Modules/_cursesmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index dd96f9aa62b85b..fe9d6fe2763f36 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -1132,7 +1132,9 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1, else #endif { +#ifdef HAVE_NCURSESW assert(wstr == NULL); +#endif const char *str = PyBytes_AS_STRING(bytesobj); if (use_xy) { rtn = mvwaddstr(self->win,y,x,str);