Skip to content

Commit 561b275

Browse files
committed
Don't use PyModule_GetState on PyPy3
1 parent 9db6657 commit 561b275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arpreq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct arpreq_state {
2929
int socket;
3030
};
3131

32-
#ifdef IS_PY3
32+
#if defined(IS_PY3) && !defined(PYPY_VERSION_NUM)
3333
#define GETSTATE(m) ((struct arpreq_state*)PyModule_GetState(m))
3434
#else
3535
#define GETSTATE(m) (&_state)

0 commit comments

Comments
 (0)