bpo-38068: Clean up gettimeofday configure logic. (GH-15775)

Assume gettimeofday exists and takes two arguments.
This commit is contained in:
Benjamin Peterson 2019-09-10 11:37:59 +01:00 committed by T. Wouters
parent c8dfa7333d
commit f1c19031fd
5 changed files with 1 additions and 59 deletions

View file

@ -718,11 +718,7 @@ pygettimeofday(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
#else /* HAVE_CLOCK_GETTIME */
/* test gettimeofday() */
#ifdef GETTIMEOFDAY_NO_TZ
err = gettimeofday(&tv);
#else
err = gettimeofday(&tv, (struct timezone *)NULL);
#endif
if (err) {
if (raise) {
PyErr_SetFromErrno(PyExc_OSError);