From 60d60db083a790d4c3b7481ca648ac2586993aa6 Mon Sep 17 00:00:00 2001 From: Dima Tisnek Date: Tue, 7 Apr 2020 10:35:41 +0900 Subject: [PATCH 1/2] socket.TCP_NOTSENT_LOWAT on macOS, even if built with very old header files --- Modules/socketmodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 580ac0af5aff59..b0c81a8c86d745 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -8228,6 +8228,11 @@ PyInit__socket(void) #ifdef TCP_USER_TIMEOUT PyModule_AddIntMacro(m, TCP_USER_TIMEOUT); #endif +#ifndef TCP_NOTSENT_LOWAT +# ifdef __APPLE__ +# define TCP_NOTSENT_LOWAT 0x201 +# endif +#endif #ifdef TCP_NOTSENT_LOWAT PyModule_AddIntMacro(m, TCP_NOTSENT_LOWAT); #endif From 88edebf9c386ac547408089354ed02cfa56752df Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2020 01:39:53 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Misc/NEWS.d/next/macOS/2020-04-07-01-39-52.bpo-40060.9Y0s-a.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/macOS/2020-04-07-01-39-52.bpo-40060.9Y0s-a.rst diff --git a/Misc/NEWS.d/next/macOS/2020-04-07-01-39-52.bpo-40060.9Y0s-a.rst b/Misc/NEWS.d/next/macOS/2020-04-07-01-39-52.bpo-40060.9Y0s-a.rst new file mode 100644 index 00000000000000..3c8884a5652292 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2020-04-07-01-39-52.bpo-40060.9Y0s-a.rst @@ -0,0 +1 @@ +Expose socket.TCP_NOTSENT_LOWAT on macOS in official builds \ No newline at end of file