[Python-checkins] r59533 - in python/trunk: Misc/NEWS configure configure.in
christian.heimes
python-checkins at python.org
Sun Dec 16 22:39:44 CET 2007
Author: christian.heimes
Date: Sun Dec 16 22:39:43 2007
New Revision: 59533
Modified:
python/trunk/Misc/NEWS
python/trunk/configure
python/trunk/configure.in
Log:
Fixed #1638: %zd configure test fails on Linux
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sun Dec 16 22:39:43 2007
@@ -12,6 +12,8 @@
Core and builtins
-----------------
+- Issue #1638: %zd configure test fails on Linux
+
- Issue #1620: New property decorator syntax was modifying the decorator
in place instead of creating a new decorator object.
Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure (original)
+++ python/trunk/configure Sun Dec 16 22:39:43 2007
@@ -23176,9 +23176,9 @@
#include <stddef.h>
#include <string.h>
-int main()
-{
- char buffer[256];
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_SSIZE_T
typedef ssize_t Py_ssize_t;
@@ -23188,6 +23188,10 @@
typedef int Py_ssize_t;
#endif
+int main()
+{
+ char buffer[256];
+
if(sprintf(buffer, "%zd", (size_t)123) < 0)
return 1;
Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in (original)
+++ python/trunk/configure.in Sun Dec 16 22:39:43 2007
@@ -3459,9 +3459,9 @@
#include <stddef.h>
#include <string.h>
-int main()
-{
- char buffer[256];
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_SSIZE_T
typedef ssize_t Py_ssize_t;
@@ -3471,6 +3471,10 @@
typedef int Py_ssize_t;
#endif
+int main()
+{
+ char buffer[256];
+
if(sprintf(buffer, "%zd", (size_t)123) < 0)
return 1;
More information about the Python-checkins
mailing list