[New-bugs-announce] [issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

Richard PALO report at bugs.python.org
Tue Nov 12 15:39:41 CET 2013


New submission from Richard PALO:

I'd like to have reopened this previous issue as it is still very much the case.

I believe as well that the common distros (I can easily verify OpenIndiana and OmniOS) patch it out (patch file attached). 
Upstream/oracle/userland-gate seems to as well.

It is time to retire this check, or at least take into consideration the parametrization from unistd.h:

#if defined(_XPG4_2)
extern int gethostname(char *, size_t);
#elif  !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
extern int gethostname(char *, int);
#endif

----------
components: Build
files: Python26-10-gethostname.patch
keywords: patch
messages: 202690
nosy: risto3
priority: normal
severity: normal
status: open
title: request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined
type: compile error
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file32584/Python26-10-gethostname.patch

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


More information about the New-bugs-announce mailing list