components/python/python34/patches/24-gethostname.patch
author pkidd <patrick.kidd@oracle.com>
Fri, 24 Feb 2017 07:31:04 -0800
branchs11u3-sru
changeset 7693 789db572fc03
parent 4100 8aea711f849c
permissions -rw-r--r--
build metadata for S11.3SRU18.3
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-3.4.3/Include/pyport.h.orig	2015-02-25 03:27:44.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-3.4.3/Include/pyport.h	2015-04-08 18:43:40.698253587 -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
@@ -643,11 +643,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 HAVE__GETPTY
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
 #include <sys/types.h>          /* we need to import mode_t */
8aea711f849c 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
 extern char * _getpty(int *, int, mode_t, int);