components/python/python34/patches/24-gethostname.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Tue, 02 Jun 2015 12:43:22 -0600
changeset 4389 a44bb9a2917e
parent 4086 c8b513653641
permissions -rw-r--r--
21086485 neutron-l3-agent service should not report online if trace dump happened 21157386 dhcp & metadata agents trace dump due to report state failure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4086
c8b513653641 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:
c8b513653641 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
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
c8b513653641 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
c8b513653641 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
c8b513653641 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 @@
c8b513653641 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.
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
 **************************************************************************/
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
 
c8b513653641 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
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
-/* Unchecked */
c8b513653641 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);
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
-#endif
c8b513653641 20855207 Python 2.6 gethostname patch needed for 2.7 and 3.4
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
-
c8b513653641 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
c8b513653641 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 */
c8b513653641 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);