diff options
Diffstat (limited to 'patches/Python-2.6.6/0002-printf-format-zd.patch')
-rw-r--r-- | patches/Python-2.6.6/0002-printf-format-zd.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/patches/Python-2.6.6/0002-printf-format-zd.patch b/patches/Python-2.6.6/0002-printf-format-zd.patch deleted file mode 100644 index 10196deae..000000000 --- a/patches/Python-2.6.6/0002-printf-format-zd.patch +++ /dev/null @@ -1,50 +0,0 @@ -From: Marc Kleine-Budde <mkl@pengutronix.de> -Date: Thu, 23 Apr 2009 08:49:08 +0200 -Subject: [PATCH] printf format %zd - -Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> ---- - configure.in | 23 +++++++++++++++++++---- - 1 file changed, 19 insertions(+), 4 deletions(-) - -diff --git a/configure.in b/configure.in -index e9b5cf0..87fad98 100644 ---- a/configure.in -+++ b/configure.in -@@ -3874,7 +3874,8 @@ else - fi - - AC_MSG_CHECKING(for %zd printf() format support) --AC_TRY_RUN([#include <stdio.h> -+AC_CACHE_VAL([ac_cv_py_format_size_t],[ -+ AC_RUN_IFELSE([#include <stdio.h> - #include <stddef.h> - #include <string.h> - -@@ -3908,9 +3909,23 @@ int main() - - return 0; - }], --[AC_MSG_RESULT(yes) -- AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])], -- AC_MSG_RESULT(no)) -+ [ac_cv_py_format_size_t=yes], -+ [ac_cv_py_format_size_t=no], -+ [ac_cv_py_format_size_t=cross], -+)]) -+ -+case "${ac_cv_py_format_size_t}" in -+yes) -+ AC_MSG_RESULT([yes]) -+ AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t]) -+ ;; -+no) -+ AC_MSG_RESULT([no]) -+ ;; -+*) -+ AC_MSG_ERROR([cross compiling - please ac_cv_py_format_size_t to yes (for working %zd printf() format support) or no]) -+ ;; -+esac - - AC_CHECK_TYPE(socklen_t,, - AC_DEFINE(socklen_t,int, |