Skip to content

Commit cbe9c78

Browse files
committed
pythongh-63760: Solaris declares gethostname()
Since at least 2013, Oracle 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
1 parent e7de0c5 commit cbe9c78

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Modules/socketmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ Local naming conventions:
111111
#include "pycore_fileutils.h" // _Py_set_inheritable()
112112
#include "pycore_moduleobject.h" // _PyModule_GetState
113113

114-
// gethostname() prototype missing from Solaris standard header files
115-
#ifdef __sun
116-
extern int gethostname(char *, int);
117-
#endif
118-
119114
#ifdef _Py_MEMORY_SANITIZER
120115
# include <sanitizer/msan_interface.h>
121116
#endif

0 commit comments

Comments
 (0)