summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authoradder32 <x@arcticadder.net>2023-11-15 01:00:24 (GMT)
committerGitHub <noreply@github.com>2023-11-15 01:00:24 (GMT)
commitfe9db901b2446b047e537447ea5bad3d470b0f78 (patch)
tree1ba86372f6e6c16c39aa116361f8deeaa68f4b28 /Modules/socketmodule.c
parent62802b6228f001e1a4af6ac668a21d2dcec0ce57 (diff)
downloadcpython-fe9db901b2446b047e537447ea5bad3d470b0f78.zip
cpython-fe9db901b2446b047e537447ea5bad3d470b0f78.tar.gz
cpython-fe9db901b2446b047e537447ea5bad3d470b0f78.tar.bz2
gh-111995: Add getnameinfo extension flag (#111994)
Add getnameinfo extension NI_IDN flag.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 2e1a097..9ac2001 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -8803,6 +8803,9 @@ socket_exec(PyObject *m)
#ifdef NI_DGRAM
ADD_INT_MACRO(m, NI_DGRAM);
#endif
+#ifdef NI_IDN
+ ADD_INT_MACRO(m, NI_IDN);
+#endif
/* shutdown() parameters */
#ifdef SHUT_RD