Skip to content

Commit

Permalink
bpo-45723: Prepare support for autoconf 2.71 (pythonGH-29441)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored and remykarem committed Dec 7, 2021
1 parent 778b147 commit dc91e43
Show file tree
Hide file tree
Showing 8 changed files with 528 additions and 699 deletions.
9 changes: 1 addition & 8 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,10 @@ typedef Py_ssize_t Py_ssize_clean_t;
* WRAPPER FOR <time.h> and/or <sys/time.h> *
********************************************/

#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else /* !TIME_WITH_SYS_TIME */
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else /* !HAVE_SYS_TIME_H */
#endif
#include <time.h>
#endif /* !HAVE_SYS_TIME_H */
#endif /* !TIME_WITH_SYS_TIME */


/******************************
* WRAPPER FOR <sys/select.h> *
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
``configure.ac`` is now compatible with autoconf 2.71. Deprecated checks
``STDC_HEADERS`` and ``AC_HEADER_TIME`` have been removed.
5 changes: 0 additions & 5 deletions Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_long.h" // _PyLong_GetZero()
#include "structmember.h" // PyMemberDef

#ifdef STDC_HEADERS
#include <stddef.h>
#else
#include <sys/types.h> // size_t
#endif

/*[clinic input]
module _collections
Expand Down
7 changes: 0 additions & 7 deletions Modules/arraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@
#include "pycore_moduleobject.h" // _PyModule_GetState()
#include "structmember.h" // PyMemberDef
#include <stddef.h> // offsetof()

#ifdef STDC_HEADERS
#include <stddef.h>
#else /* !STDC_HEADERS */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> /* For size_t */
#endif /* HAVE_SYS_TYPES_H */
#endif /* !STDC_HEADERS */

/*[clinic input]
module array
Expand Down
5 changes: 0 additions & 5 deletions Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
#include "pycore_interp.h" // PyInterpreterState.list
#include "pycore_object.h" // _PyObject_GC_TRACK()
#include "pycore_tuple.h" // _PyTuple_FromArray()

#ifdef STDC_HEADERS
#include <stddef.h>
#else
#include <sys/types.h> /* For size_t */
#endif

/*[clinic input]
class list "PyListObject *" "&PyList_Type"
Expand Down
Loading

0 comments on commit dc91e43

Please sign in to comment.