From 6f156be29862ea796123165bfcd4b35cb3e8e698 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Tue, 12 Nov 2024 18:52:08 +0100 Subject: [PATCH] Updated 'nghttp2' time patch for new version. --- patch/nghttp2_time.diff | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/patch/nghttp2_time.diff b/patch/nghttp2_time.diff index 7b35772..3c321b2 100644 --- a/patch/nghttp2_time.diff +++ b/patch/nghttp2_time.diff @@ -1,16 +1,14 @@ - lib/nghttp2_time.c | 40 ++++++++++------------------------------ - 1 file changed, 10 insertions(+), 30 deletions(-) + lib/nghttp2_time.c | 38 ++++++++++---------------------------- + 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/lib/nghttp2_time.c b/lib/nghttp2_time.c -index 947b544..db18869 100644 +index 148ccfdc..355b225a 100644 --- a/lib/nghttp2_time.c +++ b/lib/nghttp2_time.c -@@ -28,36 +28,16 @@ - # include - #endif /* HAVE_WINDOWS_H */ +@@ -30,34 +30,16 @@ + + #include --#include -- -#if !defined(HAVE_GETTICKCOUNT64) || defined(__CYGWIN__) -static uint64_t time_now_sec(void) { - time_t t = time(NULL); @@ -30,7 +28,7 @@ index 947b544..db18869 100644 -#if defined(HAVE_GETTICKCOUNT64) && !defined(__CYGWIN__) -uint64_t nghttp2_time_now_sec(void) { return GetTickCount64() / 1000; } -#elif defined(HAVE_CLOCK_GETTIME) && defined(HAVE_DECL_CLOCK_MONOTONIC) && \ -- HAVE_DECL_CLOCK_MONOTONIC +- HAVE_DECL_CLOCK_MONOTONIC -uint64_t nghttp2_time_now_sec(void) { - struct timespec tp; - int rv = clock_gettime(CLOCK_MONOTONIC, &tp);