diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-01 13:11:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-01 13:11:12 (GMT) |
commit | 2be9a31213e93e26a71150efaef1a975f8b9afec (patch) | |
tree | 5485514a2d8c01bc5fd904c59434905c5a2eff30 /Modules/_cursesmodule.c | |
parent | 89b84b026b389f3c61cbbc5ee89afd8248721b0d (diff) | |
download | cpython-2be9a31213e93e26a71150efaef1a975f8b9afec.zip cpython-2be9a31213e93e26a71150efaef1a975f8b9afec.tar.gz cpython-2be9a31213e93e26a71150efaef1a975f8b9afec.tar.bz2 |
bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)
(cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 94c67c1..4a1d08a 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -943,7 +943,7 @@ int py_mvwdelch(WINDOW *w, int y, int x) #endif /* chgat, added by Fabian Kreutz <fabian.kreutz at gmx.net> */ - +#ifdef HAVE_CURSES_WCHGAT static PyObject * PyCursesWindow_ChgAt(PyCursesWindowObject *self, PyObject *args) { @@ -996,7 +996,7 @@ PyCursesWindow_ChgAt(PyCursesWindowObject *self, PyObject *args) } return PyCursesCheckERR(rtn, "chgat"); } - +#endif static PyObject * PyCursesWindow_DelCh(PyCursesWindowObject *self, PyObject *args) @@ -2001,7 +2001,9 @@ static PyMethodDef PyCursesWindow_Methods[] = { {"attron", (PyCFunction)PyCursesWindow_AttrOn, METH_VARARGS}, {"attrset", (PyCFunction)PyCursesWindow_AttrSet, METH_VARARGS}, {"bkgd", (PyCFunction)PyCursesWindow_Bkgd, METH_VARARGS}, +#ifdef HAVE_CURSES_WCHGAT {"chgat", (PyCFunction)PyCursesWindow_ChgAt, METH_VARARGS}, +#endif {"bkgdset", (PyCFunction)PyCursesWindow_BkgdSet, METH_VARARGS}, {"border", (PyCFunction)PyCursesWindow_Border, METH_VARARGS}, {"box", (PyCFunction)PyCursesWindow_Box, METH_VARARGS}, |