author | John Beck <John.Beck@Oracle.COM> |
Wed, 08 Apr 2015 19:11:50 -0700 | |
changeset 4086 | c8b513653641 |
permissions | -rw-r--r-- |
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); |