File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ Local naming conventions:
86
86
*/
87
87
88
88
#ifdef __APPLE__
89
+ // Issue #35569: Expose RFC 3542 socket options.
90
+ #define __APPLE_USE_RFC_3542 1
89
91
#include <AvailabilityMacros.h>
90
92
/* for getaddrinfo thread safety test on old versions of OS X */
91
93
#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):
1222
1222
self .add (Extension ('_crypt' , ['_cryptmodule.c' ], libraries = libs ))
1223
1223
1224
1224
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' ]))
1232
1226
1233
1227
def detect_dbm_gdbm (self ):
1234
1228
# Modules that provide persistent dictionary-like semantics. You will
You can’t perform that action at this time.
0 commit comments