summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-25 07:11:04 (GMT)
committerGitHub <noreply@github.com>2023-10-25 07:11:04 (GMT)
commit3052c098ca2779c2d9ab9800dabe66d0efa01794 (patch)
tree17dcf38c78969676f6fe09eb4f62cf7690f6e289 /Modules
parent86887a2084618d1ea1afe756b24a930df7dd3543 (diff)
downloadcpython-3052c098ca2779c2d9ab9800dabe66d0efa01794.zip
cpython-3052c098ca2779c2d9ab9800dabe66d0efa01794.tar.gz
cpython-3052c098ca2779c2d9ab9800dabe66d0efa01794.tar.bz2
gh-111253: Fix error checking in _socket module init (#111254)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 3d099d4..ddc18d8 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -7723,10 +7723,10 @@ socket_exec(PyObject *m)
/* FreeBSD divert(4) */
#ifdef PF_DIVERT
- PyModule_AddIntMacro(m, PF_DIVERT);
+ ADD_INT_MACRO(m, PF_DIVERT);
#endif
#ifdef AF_DIVERT
- PyModule_AddIntMacro(m, AF_DIVERT);
+ ADD_INT_MACRO(m, AF_DIVERT);
#endif
#ifdef AF_PACKET