]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] [3.12] gh-63760: Don't declare gethostname() on Solaris (GH-108817) (GH-108824...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 3 Sep 2023 06:53:02 +0000 (23:53 -0700)
committerGitHub <noreply@github.com>
Sun, 3 Sep 2023 06:53:02 +0000 (08:53 +0200)
commitb30c83eb21e665fac7e5cb240943e6a4a70b3ec7
tree632aa96a242ed17acc9d43038e32ef9cef091e72
parent76f52196b90410286234f905cbac32c3c590de9e
[3.11] [3.12] gh-63760: Don't declare gethostname() on Solaris (GH-108817) (GH-108824) (#108832)

[3.12] gh-63760: Don't declare gethostname() on Solaris (GH-108817) (GH-108824)

gh-63760: Don't declare gethostname() on Solaris (GH-108817)

Since 2005, Solaris defines gethostname(). socketmodule.c no longer
has to define gethostname() for Solaris.

Oracle Solaris and OpenSolaris have patches to remove the
gethostname() definition in Python:

* https://github.com/oracle/solaris-userland/blob/master/components/python/python37/patches/15-gethostname.patch
* https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/python/python37/patches/15-gethostname.patch
* https://github.com/omniosorg/omnios-build/blob/master/build/python27/patches/24-gethostname.patch

(cherry picked from commit 7269916cd7b89b5e6f20bfe83ebe1038bda56b4b)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
(cherry picked from commit 0e6d582b3b73a88e71cae04327b31a1ee203722c)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/pyport.h
Misc/NEWS.d/next/Build/2023-09-02-18-04-15.gh-issue-63760.r8hJ6q.rst [new file with mode: 0644]