mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-45743: Move __APPLE_USE_RFC_3542 into socketmodule.c (GH-29456)
This commit is contained in:
parent
122ca4d73f
commit
24af9a40a8
2 changed files with 3 additions and 7 deletions
|
@ -86,6 +86,8 @@ Local naming conventions:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
// Issue #35569: Expose RFC 3542 socket options.
|
||||||
|
#define __APPLE_USE_RFC_3542 1
|
||||||
#include <AvailabilityMacros.h>
|
#include <AvailabilityMacros.h>
|
||||||
/* for getaddrinfo thread safety test on old versions of OS X */
|
/* for getaddrinfo thread safety test on old versions of OS X */
|
||||||
#ifndef MAC_OS_X_VERSION_10_5
|
#ifndef MAC_OS_X_VERSION_10_5
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -1222,13 +1222,7 @@ class PyBuildExt(build_ext):
|
||||||
self.add(Extension('_crypt', ['_cryptmodule.c'], libraries=libs))
|
self.add(Extension('_crypt', ['_cryptmodule.c'], libraries=libs))
|
||||||
|
|
||||||
def detect_socket(self):
|
def detect_socket(self):
|
||||||
# socket(2)
|
self.add(Extension('_socket', ['socketmodule.c'], depends=['socketmodule.h']))
|
||||||
kwargs = {'depends': ['socketmodule.h']}
|
|
||||||
if MACOS:
|
|
||||||
# Issue #35569: Expose RFC 3542 socket options.
|
|
||||||
kwargs['extra_compile_args'] = ['-D__APPLE_USE_RFC_3542']
|
|
||||||
|
|
||||||
self.add(Extension('_socket', ['socketmodule.c'], **kwargs))
|
|
||||||
|
|
||||||
def detect_dbm_gdbm(self):
|
def detect_dbm_gdbm(self):
|
||||||
# Modules that provide persistent dictionary-like semantics. You will
|
# Modules that provide persistent dictionary-like semantics. You will
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue