Skip to content

Commit f6bda5d

Browse files
author
Erlend E. Aasland
committed
Only define __APPLE_USE_RFC_3542 when building socket lib
1 parent ebfde1f commit f6bda5d

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

configure

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7421,9 +7421,6 @@ $as_echo "$ac_cv_enable_visibility" >&6; }
74217421
;;
74227422

74237423
Darwin*)
7424-
# Issue #35569: Expose the RFC 3542 socket options.
7425-
CFLAGS="-D__APPLE_USE_RFC_3542 ${CFLAGS}"
7426-
74277424
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
74287425
# used to be here, but non-Apple gcc doesn't accept them.
74297426
if test "${CC}" = gcc

configure.ac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,9 +1844,6 @@ yes)
18441844
;;
18451845

18461846
Darwin*)
1847-
# Issue #35569: Expose the RFC 3542 socket options.
1848-
CFLAGS="-D__APPLE_USE_RFC_3542 ${CFLAGS}"
1849-
18501847
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
18511848
# used to be here, but non-Apple gcc doesn't accept them.
18521849
if test "${CC}" = gcc

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,12 @@ def detect_crypt(self):
10941094
def detect_socket(self):
10951095
# socket(2)
10961096
if not VXWORKS:
1097-
self.add(Extension('_socket', ['socketmodule.c'],
1098-
depends=['socketmodule.h']))
1097+
kwargs = {'depends': ['socketmodule.h']}
1098+
if MACOS:
1099+
# Issue #35569: Expose RFC 3542 socket options.
1100+
kwargs['extra_compile_args'] = ['-D__APPLE_USE_RFC_3542']
1101+
1102+
self.add(Extension('_socket', ['socketmodule.c'], **kwargs))
10991103
elif self.compiler.find_library_file(self.lib_dirs, 'net'):
11001104
libs = ['net']
11011105
self.add(Extension('_socket', ['socketmodule.c'],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy