Skip to content

Commit cbab997

Browse files
authored
bpo-45723: Prepare support for autoconf 2.71 (GH-29441)
1 parent 9bd0cf5 commit cbab997

File tree

8 files changed

+528
-699
lines changed

8 files changed

+528
-699
lines changed

Include/pyport.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -216,17 +216,10 @@ typedef Py_ssize_t Py_ssize_clean_t;
216216
* WRAPPER FOR <time.h> and/or <sys/time.h> *
217217
********************************************/
218218

219-
#ifdef TIME_WITH_SYS_TIME
220-
#include <sys/time.h>
221-
#include <time.h>
222-
#else /* !TIME_WITH_SYS_TIME */
223219
#ifdef HAVE_SYS_TIME_H
224220
#include <sys/time.h>
225-
#else /* !HAVE_SYS_TIME_H */
221+
#endif
226222
#include <time.h>
227-
#endif /* !HAVE_SYS_TIME_H */
228-
#endif /* !TIME_WITH_SYS_TIME */
229-
230223

231224
/******************************
232225
* WRAPPER FOR <sys/select.h> *
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
``configure.ac`` is now compatible with autoconf 2.71. Deprecated checks
2+
``STDC_HEADERS`` and ``AC_HEADER_TIME`` have been removed.

Modules/_collectionsmodule.c

-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
#include "pycore_call.h" // _PyObject_CallNoArgs()
33
#include "pycore_long.h" // _PyLong_GetZero()
44
#include "structmember.h" // PyMemberDef
5-
6-
#ifdef STDC_HEADERS
75
#include <stddef.h>
8-
#else
9-
#include <sys/types.h> // size_t
10-
#endif
116

127
/*[clinic input]
138
module _collections

Modules/arraymodule.c

-7
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@
1313
#include "pycore_moduleobject.h" // _PyModule_GetState()
1414
#include "structmember.h" // PyMemberDef
1515
#include <stddef.h> // offsetof()
16-
17-
#ifdef STDC_HEADERS
1816
#include <stddef.h>
19-
#else /* !STDC_HEADERS */
20-
#ifdef HAVE_SYS_TYPES_H
21-
#include <sys/types.h> /* For size_t */
22-
#endif /* HAVE_SYS_TYPES_H */
23-
#endif /* !STDC_HEADERS */
2417

2518
/*[clinic input]
2619
module array

Objects/listobject.c

-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
#include "pycore_interp.h" // PyInterpreterState.list
66
#include "pycore_object.h" // _PyObject_GC_TRACK()
77
#include "pycore_tuple.h" // _PyTuple_FromArray()
8-
9-
#ifdef STDC_HEADERS
108
#include <stddef.h>
11-
#else
12-
#include <sys/types.h> /* For size_t */
13-
#endif
149

1510
/*[clinic input]
1611
class list "PyListObject *" "&PyList_Type"

0 commit comments

Comments
 (0)