bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)

This commit is contained in:
Batuhan Taskaya 2020-05-17 01:36:14 +03:00 committed by GitHub
parent 25160cdc47
commit 31245d19f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View 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;