commit | db3d6cbce00172e44a404fcb9570d011b4b70049 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sun Dec 16 21:39:43 2007 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Sun Dec 16 21:39:43 2007 +0000 |
tree | 89b60a58f3a6c93f443331f4b7c6cb5c5d70d3c4 | |
parent | eee1fc51ba1b4d184a8176c20d1d3a68bf837c97 [diff] [blame] |
Fixed #1638: %zd configure test fails on Linux
diff --git a/configure b/configure index 4aa1730..f31069e 100755 --- a/configure +++ b/configure
@@ -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;