From 31245d19f2de03e57fd93c5169f00a36d7410fcf Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Sun, 17 May 2020 01:36:14 +0300 Subject: [PATCH] bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281) --- Modules/selectmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 5c15e9973ab..bec236689bd 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;