aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/timeval.c
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-22 17:10:22 +0100
committerGitHub <noreply@github.com>2023-12-22 17:10:22 +0100
commit148f920350c60c0ca2d89b637a5aea9093eee450 (patch)
tree6314b1433dac833398c333731e83f0ad77e81a0b /contrib/libs/curl/lib/timeval.c
parent7116d46ae7c0259b5f9d489de263f8701e432b1c (diff)
downloadydb-148f920350c60c0ca2d89b637a5aea9093eee450.tar.gz
Library import 2 (#639)
Diffstat (limited to 'contrib/libs/curl/lib/timeval.c')
-rw-r--r--contrib/libs/curl/lib/timeval.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/contrib/libs/curl/lib/timeval.c b/contrib/libs/curl/lib/timeval.c
index 2de79be46d..647d7b0fc5 100644
--- a/contrib/libs/curl/lib/timeval.c
+++ b/contrib/libs/curl/lib/timeval.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -58,8 +58,7 @@ struct curltime Curl_now(void)
return now;
}
-#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC) || \
- defined(HAVE_CLOCK_GETTIME_MONOTONIC_RAW)
+#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC)
struct curltime Curl_now(void)
{
@@ -88,19 +87,6 @@ struct curltime Curl_now(void)
have_clock_gettime = TRUE;
#endif
-#ifdef HAVE_CLOCK_GETTIME_MONOTONIC_RAW
- if(
-#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
- (HAVE_BUILTIN_AVAILABLE == 1)
- have_clock_gettime &&
-#endif
- (0 == clock_gettime(CLOCK_MONOTONIC_RAW, &tsnow))) {
- cnow.tv_sec = tsnow.tv_sec;
- cnow.tv_usec = (unsigned int)(tsnow.tv_nsec / 1000);
- }
- else
-#endif
-
if(
#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
(HAVE_BUILTIN_AVAILABLE == 1)