]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41374: Remove obsolete exclusion of netinet/tcp.h on Cygwin (GH-21649)
authorZackery Spytz <zspytz@gmail.com>
Wed, 20 Oct 2021 17:14:59 +0000 (10:14 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Oct 2021 17:14:59 +0000 (18:14 +0100)
Misc/NEWS.d/next/Library/2020-07-27-19-21-05.bpo-41374.cd-kFL.rst [new file with mode: 0644]
Modules/socketmodule.h

diff --git a/Misc/NEWS.d/next/Library/2020-07-27-19-21-05.bpo-41374.cd-kFL.rst b/Misc/NEWS.d/next/Library/2020-07-27-19-21-05.bpo-41374.cd-kFL.rst
new file mode 100644 (file)
index 0000000..a5b2e04
--- /dev/null
@@ -0,0 +1,2 @@
+Ensure that ``socket.TCP_*`` constants are exposed on Cygwin 3.1.6 and
+greater.
index e4f375d5e8100a13f70ee74decd7854f094889b4..aea599f0ee6c857126bb3d48fa6f8c687a8822e4 100644 (file)
@@ -8,9 +8,7 @@
 #   include <sys/socket.h>
 # endif
 # include <netinet/in.h>
-# if !defined(__CYGWIN__)
-#  include <netinet/tcp.h>
-# endif
+# include <netinet/tcp.h>
 
 #else /* MS_WINDOWS */
 # include <winsock2.h>