]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35550: Fix incorrect Solaris define guards (GH-11275)
authorJakub Kulík <Kulikjak@gmail.com>
Mon, 31 Dec 2018 02:16:40 +0000 (03:16 +0100)
committerGregory P. Smith <greg@krypto.org>
Mon, 31 Dec 2018 02:16:40 +0000 (18:16 -0800)
commit6f9bc72c79c3262e5d0f2c0e96b016477399cfb1
tree62f29dd25098345fd413aa32d66d6baa6f95a7a8
parent30e023256aa1b00d4c783553752fc6f2cc0b9b27
bpo-35550: Fix incorrect Solaris define guards (GH-11275)

Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris

https://bugs.python.org/issue35550
Misc/NEWS.d/next/Build/2018-12-29-10-19-43.bpo-35550.BTuu8e.rst [new file with mode: 0644]
Modules/_posixsubprocess.c
Modules/posixmodule.c
Modules/socketmodule.c
Modules/timemodule.c
Python/bootstrap_hash.c