diff options
| author | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-02-28 11:18:34 +0000 |
|---|---|---|
| committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-02-28 11:18:34 +0000 |
| commit | f5b0cc9973d24a6e6bb9981a5ba16cf57095d1d3 (patch) | |
| tree | 76334941e8a143411bf13951187cf2c8c0688c7d /packages/python/python-2.5.2/autohell.patch | |
| parent | 0108e4109915cb8bb54212fc1a2985b81af4f7d5 (diff) | |
| parent | a6aca0c99ea61a1cee31657bef1017d824e24c82 (diff) | |
merge of '17c778274717898b377338f8552576cb4fd350eb'
and '662ae9dafb4c25857c0afa36b3303e10fdd8cea6'
Diffstat (limited to 'packages/python/python-2.5.2/autohell.patch')
| -rw-r--r-- | packages/python/python-2.5.2/autohell.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/python/python-2.5.2/autohell.patch b/packages/python/python-2.5.2/autohell.patch new file mode 100644 index 0000000000..32977955d4 --- /dev/null +++ b/packages/python/python-2.5.2/autohell.patch @@ -0,0 +1,50 @@ +Index: Python-2.5.2/configure.in +=================================================================== +--- Python-2.5.2.orig/configure.in ++++ Python-2.5.2/configure.in +@@ -3410,45 +3410,6 @@ esac + + + +-AC_MSG_CHECKING(for %zd printf() format support) +-AC_TRY_RUN([#include <stdio.h> +-#include <stddef.h> +-#include <string.h> +- +-#ifdef HAVE_SYS_TYPES_H +-#include <sys/types.h> +-#endif +- +-#ifdef HAVE_SSIZE_T +-typedef ssize_t Py_ssize_t; +-#elif SIZEOF_VOID_P == SIZEOF_LONG +-typedef long Py_ssize_t; +-#else +-typedef int Py_ssize_t; +-#endif +- +-int main() +-{ +- char buffer[256]; +- +- if(sprintf(buffer, "%zd", (size_t)123) < 0) +- return 1; +- +- if (strcmp(buffer, "123")) +- return 1; +- +- if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) +- return 1; +- +- if (strcmp(buffer, "-123")) +- return 1; +- +- 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_CHECK_TYPE(socklen_t,, + AC_DEFINE(socklen_t,int, + Define to `int' if <sys/socket.h> does not define.),[ |
