aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2024-01-04 15:09:05 +0100
committerGitHub <noreply@github.com>2024-01-04 15:09:05 +0100
commitdab291146f6cd7d35684e3a1150e5bb1c412982c (patch)
tree36ef35f6cacb6432845a4a33f940c95871036b32 /contrib/tools/python/src
parent63660ad5e7512029fd0218e7a636580695a24e1f (diff)
downloadydb-dab291146f6cd7d35684e3a1150e5bb1c412982c.tar.gz
Library import 5, delete go dependencies (#832)
* Library import 5, delete go dependencies * Fix yt client
Diffstat (limited to 'contrib/tools/python/src')
-rw-r--r--contrib/tools/python/src/Modules/socketmodule.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/contrib/tools/python/src/Modules/socketmodule.c b/contrib/tools/python/src/Modules/socketmodule.c
index 5036325643..013975455c 100644
--- a/contrib/tools/python/src/Modules/socketmodule.c
+++ b/contrib/tools/python/src/Modules/socketmodule.c
@@ -81,13 +81,6 @@ Local naming conventions:
*/
-#include <stdbool.h>
-bool IsReusePortAvailable();
-
-#ifndef SO_REUSEPORT
-#define SO_REUSEPORT 15
-#endif
-
#ifdef __APPLE__
#include <AvailabilityMacros.h>
/* for getaddrinfo thread safety test on old versions of OS X */
@@ -4942,11 +4935,9 @@ init_socket(void)
#ifdef SO_OOBINLINE
PyModule_AddIntConstant(m, "SO_OOBINLINE", SO_OOBINLINE);
#endif
-
- if (IsReusePortAvailable()) {
- PyModule_AddIntConstant(m, "SO_REUSEPORT", SO_REUSEPORT);
- }
-
+#ifdef SO_REUSEPORT
+ PyModule_AddIntConstant(m, "SO_REUSEPORT", SO_REUSEPORT);
+#endif
#ifdef SO_SNDBUF
PyModule_AddIntConstant(m, "SO_SNDBUF", SO_SNDBUF);
#endif