diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-01 12:34:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 12:34:20 (GMT) |
commit | 894ebd065e02debf20c0657d26020ecc42b7534f (patch) | |
tree | 53809e5ad863135e94a77da6825448341f00d65a /Modules/_cursesmodule.c | |
parent | 388cd85e51aa9c73f8e7f35f0d06c258be7b579c (diff) | |
download | cpython-894ebd065e02debf20c0657d26020ecc42b7534f.zip cpython-894ebd065e02debf20c0657d26020ecc42b7534f.tar.gz cpython-894ebd065e02debf20c0657d26020ecc42b7534f.tar.bz2 |
bpo-31919: Fix building the curses module on OpenIndiana. (#4211)
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 2a2eed2..7962936 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -941,7 +941,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) { @@ -994,7 +994,7 @@ PyCursesWindow_ChgAt(PyCursesWindowObject *self, PyObject *args) } return PyCursesCheckERR(rtn, "chgat"); } - +#endif static PyObject * PyCursesWindow_DelCh(PyCursesWindowObject *self, PyObject *args) @@ -1985,7 +1985,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}, |