From: Batuhan Taskaya Date: Sat, 16 May 2020 22:36:14 +0000 (+0300) Subject: bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281) X-Git-Tag: v3.9.0b1~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31245d19f2de03e57fd93c5169f00a36d7410fcf;p=thirdparty%2FPython%2Fcpython.git bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281) --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 5c15e9973ab8..bec236689bd8 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -764,6 +764,8 @@ poll_dealloc(pollObject *self) #ifdef HAVE_SYS_DEVPOLL_H +static PyMethodDef devpoll_methods[]; + typedef struct { PyObject_HEAD int fd_devpoll;