diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-01 13:11:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-01 13:11:18 (GMT) |
commit | 87c66e46ce2c929540a9a91bbe25d1840d194475 (patch) | |
tree | 0e123b1b6d10ec78f6160105e740ece875e185b9 /Modules/_cursesmodule.c | |
parent | 4b73a79e796c3832be0cfd45bc27f15aea32b621 (diff) | |
download | cpython-87c66e46ce2c929540a9a91bbe25d1840d194475.zip cpython-87c66e46ce2c929540a9a91bbe25d1840d194475.tar.gz cpython-87c66e46ce2c929540a9a91bbe25d1840d194475.tar.bz2 |
bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4216)
(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 9149d76..75b1989 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -670,7 +670,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) { @@ -723,7 +723,7 @@ PyCursesWindow_ChgAt(PyCursesWindowObject *self, PyObject *args) } return PyCursesCheckERR(rtn, "chgat"); } - +#endif static PyObject * PyCursesWindow_DelCh(PyCursesWindowObject *self, PyObject *args) @@ -1569,7 +1569,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}, |