summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-05-16 22:36:14 (GMT)
committerGitHub <noreply@github.com>2020-05-16 22:36:14 (GMT)
commit31245d19f2de03e57fd93c5169f00a36d7410fcf (patch)
tree671e7ffd2995ba97d775f7344aa54a487fd7e58b
parent25160cdc4775a1ddb4e37c8bf5a6e31ad9c146ed (diff)
downloadcpython-31245d19f2de03e57fd93c5169f00a36d7410fcf.zip
cpython-31245d19f2de03e57fd93c5169f00a36d7410fcf.tar.gz
cpython-31245d19f2de03e57fd93c5169f00a36d7410fcf.tar.bz2
bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)
-rw-r--r--Modules/selectmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 5c15e99..bec2366 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;