Skip to content

Commit 6aee0ac

Browse files
committed
Ensure the compatibility of PySCTP with Python 3.10, through adding a "#define PY_SSIZE_T_CLEAN" preprocessor directive on the top of the "_sctp.c" module file, before including <Python.h>
1 parent 82ae84d commit 6aee0ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_sctp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
* Elvis Pfützenreuter (elvis.pfutzenreuter@{gmail.com,indt.org.br})
1919
* Copyright (c) 2005 Instituto Nokia de Tecnologia
2020
*/
21+
22+
#define PY_SSIZE_T_CLEAN
23+
2124
#include <Python.h>
2225
#include <sys/socket.h>
2326
#include <netinet/in.h>

0 commit comments

Comments
 (0)