From: Victor Stinner Date: Mon, 9 Mar 2026 13:53:52 +0000 (+0100) Subject: gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669) X-Git-Tag: v3.15.0a7~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39aa415296c9ebb488eaf5952be00ef2d7ab306f;p=thirdparty%2FPython%2Fcpython.git gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669) --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index dd96f9aa62b8..fe9d6fe2763f 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);