[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

Michael Stahl report at bugs.python.org
Tue Apr 15 16:32:56 CEST 2014


Michael Stahl added the comment:

we carry a patch in LibreOffice for exactly this problem:

http://cgit.freedesktop.org/libreoffice/core/tree/external/python3/python-3.3.0-i42553.patch.2

this was found many years ago in OOo:
https://issues.apache.org/ooo/show_bug.cgi?id=42553

there is at least one file in the LO code which includes pyport.h
(which i have just verified via generated header dependencies),
and the LO build system globally defines a SOLARIS macro
on that platform, so there's a real-world problem caused by this.

so if you could re-open this and merge that patch we could
finally get rid of it on our side; there doesn't appear to be
a downside to me since according to this bug report
the prototype is wrong for Solaris 2.6 already, and older
versions ought to have died out by now.

----------
nosy: +mst

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue837046>
_______________________________________


More information about the Python-bugs-list mailing list