mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fixed #1638: %zd configure test fails on Linux
This commit is contained in:
parent
eee1fc51ba
commit
db3d6cbce0
3 changed files with 16 additions and 6 deletions
10
configure
vendored
10
configure
vendored
|
@ -23176,9 +23176,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;
|
||||
|
@ -23188,6 +23188,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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue