diff -r 77d16a5dc779 Modules/selectmodule.c --- a/Modules/selectmodule.c Sat Jul 30 14:14:12 2016 +0300 +++ b/Modules/selectmodule.c Sat Jul 30 16:26:44 2016 +0200 @@ -404,7 +404,11 @@ { PyObject *o, *key, *value; int fd; +#ifdef POLLPRI unsigned short events = POLLIN | POLLPRI | POLLOUT; +#else + unsigned short events = POLLIN | POLLOUT; +#endif int err; if (!PyArg_ParseTuple(args, "O|O&:register", &o, ushort_converter, &events)) @@ -2435,7 +2439,9 @@ if (PyType_Ready(&poll_Type) < 0) return NULL; PyModule_AddIntMacro(m, POLLIN); +#ifdef POLLPRI PyModule_AddIntMacro(m, POLLPRI); +#endif PyModule_AddIntMacro(m, POLLOUT); PyModule_AddIntMacro(m, POLLERR); PyModule_AddIntMacro(m, POLLHUP);