]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>
Sat, 16 May 2020 22:36:14 +0000 (01:36 +0300)
committerGitHub <noreply@github.com>
Sat, 16 May 2020 22:36:14 +0000 (23:36 +0100)
Modules/selectmodule.c

index 5c15e9973ab84d6c9c40201c935fcbc11db4a084..bec236689bd89d3aa5e39484818c390d210ae835 100644 (file)
@@ -764,6 +764,8 @@ poll_dealloc(pollObject *self)
 
 
 #ifdef HAVE_SYS_DEVPOLL_H
+static PyMethodDef devpoll_methods[];
+
 typedef struct {
     PyObject_HEAD
     int fd_devpoll;