File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ Local naming conventions:
8686*/
8787
8888#ifdef __APPLE__
89+ // Issue #35569: Expose RFC 3542 socket options.
90+ #define __APPLE_USE_RFC_3542 1
8991#include <AvailabilityMacros.h>
9092/* for getaddrinfo thread safety test on old versions of OS X */
9193#ifndef MAC_OS_X_VERSION_10_5
Original file line number Diff line number Diff line change @@ -1222,13 +1222,7 @@ def detect_crypt(self):
12221222 self .add (Extension ('_crypt' , ['_cryptmodule.c' ], libraries = libs ))
12231223
12241224 def detect_socket (self ):
1225- # socket(2)
1226- kwargs = {'depends' : ['socketmodule.h' ]}
1227- if MACOS :
1228- # Issue #35569: Expose RFC 3542 socket options.
1229- kwargs ['extra_compile_args' ] = ['-D__APPLE_USE_RFC_3542' ]
1230-
1231- self .add (Extension ('_socket' , ['socketmodule.c' ], ** kwargs ))
1225+ self .add (Extension ('_socket' , ['socketmodule.c' ], depends = ['socketmodule.h' ]))
12321226
12331227 def detect_dbm_gdbm (self ):
12341228 # Modules that provide persistent dictionary-like semantics. You will
You can’t perform that action at this time.
0 commit comments