python: add patch to detect Linux 3.x as linux2 in sys.platform.

This commit is contained in:
Juan RP
2011-09-19 10:10:37 +02:00
parent 040eaa74a6
commit 56efac8fb9
4 changed files with 50 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
http://hg.python.org/cpython/rev/c816479f6aaf/
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -2995,6 +2995,7 @@ then
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -293,6 +293,7 @@ then
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;