components/python/python27/patches/24-gethostname.patch
author John Beck <John.Beck@Oracle.COM>
Wed, 08 Apr 2015 19:11:50 -0700
branchs11-update
changeset 4100 8aea711f849c
permissions -rw-r--r--
20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4100
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
This patch was adapted from a 2.6 patch which came from upstream:
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
http://bugs.python.org/issue19561
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
--- Python-2.7.9/Include/pyport.h.orig	2014-12-10 07:59:32.000000000 -0800
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
+++ Python-2.7.9/Include/pyport.h	2015-04-08 18:38:02.450233799 -0700
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
@@ -640,11 +640,6 @@
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
 in platform-specific #ifdefs.
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
 **************************************************************************/
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
 
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
-#ifdef SOLARIS
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
-/* Unchecked */
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
-extern int gethostname(char *, int);
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
-#endif
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
-
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
 #ifdef __BEOS__
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
 /* Unchecked */
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
 /* It's in the libs, but not the headers... - [cjh] */