aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-09-10 11:37:59 +0100
committerT. Wouters <thomas@python.org>2019-09-10 03:37:59 -0700
commitf1c19031fd5f4cf6faad539e30796b42954527db (patch)
treee891a6fb68b448b3f15998f0bd1ce7f509fa004e /configure
parentbpo-37052: Add examples for mocking async iterators and context managers (GH-... (diff)
downloadcpython-f1c19031fd5f4cf6faad539e30796b42954527db.tar.gz
cpython-f1c19031fd5f4cf6faad539e30796b42954527db.tar.bz2
cpython-f1c19031fd5f4cf6faad539e30796b42954527db.zip
bpo-38068: Clean up gettimeofday configure logic. (GH-15775)
Assume gettimeofday exists and takes two arguments.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 0 insertions, 31 deletions
diff --git a/configure b/configure
index d4d59be8602..cb60ce256d4 100755
--- a/configure
+++ b/configure
@@ -12741,37 +12741,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
done
-for ac_func in gettimeofday
-do :
- ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
-if test "x$ac_cv_func_gettimeofday" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_GETTIMEOFDAY 1
-_ACEOF
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <sys/time.h>
-int
-main ()
-{
-gettimeofday((struct timeval*)0,(struct timezone*)0);
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
-
-$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
-
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-fi
-done
-
# We search for both crypt and crypt_r as one or the other may be defined
# This gets us our -lcrypt in LIBS when required on the target platform.