diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-18 21:14:54 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-18 21:14:54 +0000 |
commit | bf5422cb4060bb9032027500ed29ca1abd44ed4c (patch) | |
tree | 9b18546a6854f3569efcf39bf5750a206f3bd7cc /configure | |
parent | 5fc94f614edd6dd7846521dbb90221a55af05201 (diff) | |
download | cpython-bf5422cb4060bb9032027500ed29ca1abd44ed4c.tar.gz |
Backport of #1638: %zd configure test fails on Linux
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -22505,9 +22505,9 @@ cat >>conftest.$ac_ext <<_ACEOF #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; @@ -22517,6 +22517,10 @@ typedef long Py_ssize_t; typedef int Py_ssize_t; #endif +int main() +{ + char buffer[256]; + if(sprintf(buffer, "%zd", (size_t)123) < 0) return 1; |