# HG changeset patch # User John Beck # Date 1428545510 25200 # Node ID c8b5136536418db2e23bd62b35b361f2ed9c6944 # Parent 936779f6ced97f0598e2727016ba1988a37c67d1 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4 diff -r 936779f6ced9 -r c8b513653641 components/python/python27/patches/24-gethostname.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/python/python27/patches/24-gethostname.patch Wed Apr 08 19:11:50 2015 -0700 @@ -0,0 +1,17 @@ +This patch was adapted from a 2.6 patch which came from upstream: +http://bugs.python.org/issue19561 + +--- Python-2.7.9/Include/pyport.h.orig 2014-12-10 07:59:32.000000000 -0800 ++++ Python-2.7.9/Include/pyport.h 2015-04-08 18:38:02.450233799 -0700 +@@ -640,11 +640,6 @@ + in platform-specific #ifdefs. + **************************************************************************/ + +-#ifdef SOLARIS +-/* Unchecked */ +-extern int gethostname(char *, int); +-#endif +- + #ifdef __BEOS__ + /* Unchecked */ + /* It's in the libs, but not the headers... - [cjh] */ diff -r 936779f6ced9 -r c8b513653641 components/python/python34/patches/24-gethostname.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/python/python34/patches/24-gethostname.patch Wed Apr 08 19:11:50 2015 -0700 @@ -0,0 +1,17 @@ +This patch was adapted from a 2.6 patch which came from upstream: +http://bugs.python.org/issue19561 + +--- Python-3.4.3/Include/pyport.h.orig 2015-02-25 03:27:44.000000000 -0800 ++++ Python-3.4.3/Include/pyport.h 2015-04-08 18:43:40.698253587 -0700 +@@ -643,11 +643,6 @@ + in platform-specific #ifdefs. + **************************************************************************/ + +-#ifdef SOLARIS +-/* Unchecked */ +-extern int gethostname(char *, int); +-#endif +- + #ifdef HAVE__GETPTY + #include /* we need to import mode_t */ + extern char * _getpty(int *, int, mode_t, int);