summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-02 14:50:18 (GMT)
committerGitHub <noreply@github.com>2023-09-02 14:50:18 (GMT)
commit594b00057e667e0d8d4e41748be056cdd829e919 (patch)
treeb970b7d385d30e9bb423a30bc3029cc94fe4ca4b /Modules/socketmodule.c
parent4f9b706c6f5d4422a398146bfd011daedaef1851 (diff)
downloadcpython-594b00057e667e0d8d4e41748be056cdd829e919.zip
cpython-594b00057e667e0d8d4e41748be056cdd829e919.tar.gz
cpython-594b00057e667e0d8d4e41748be056cdd829e919.tar.bz2
gh-108765: Python.h no longer includes <unistd.h> (#108783)
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 2f12c9c..74b1c1c 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -269,7 +269,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
-# include <unistd.h>
+#include <unistd.h> // close()
/* Headers needed for inet_ntoa() and inet_addr() */
# include <arpa/inet.h>