aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_mono_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_mono_clock.c')
-rw-r--r--src/microhttpd/mhd_mono_clock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c
index e06f6d16..b04153f8 100644
--- a/src/microhttpd/mhd_mono_clock.c
+++ b/src/microhttpd/mhd_mono_clock.c
@@ -215,8 +215,7 @@ MHD_monotonic_sec_counter_init (void)
215 else 215 else
216#endif /* CLOCK_MONOTONIC_RAW */ 216#endif /* CLOCK_MONOTONIC_RAW */
217#ifdef CLOCK_BOOTTIME 217#ifdef CLOCK_BOOTTIME
218 /* Linux-specific clock */ 218 /* Count time in suspend on Linux so it's real monotonic, */
219 /* Count time in suspend so it's real monotonic on Linux, */
220 /* but can be slower value-getting than other clocks */ 219 /* but can be slower value-getting than other clocks */
221 if (0 == clock_gettime (CLOCK_BOOTTIME, 220 if (0 == clock_gettime (CLOCK_BOOTTIME,
222 &ts)) 221 &ts))
@@ -239,7 +238,7 @@ MHD_monotonic_sec_counter_init (void)
239 mono_clock_source = _MHD_CLOCK_GETTIME; 238 mono_clock_source = _MHD_CLOCK_GETTIME;
240 } 239 }
241 else 240 else
242#endif /* CLOCK_BOOTTIME */ 241#endif /* CLOCK_MONOTONIC */
243#ifdef CLOCK_UPTIME 242#ifdef CLOCK_UPTIME
244 /* non-Linux clock */ 243 /* non-Linux clock */
245 /* Doesn't count time in suspend */ 244 /* Doesn't count time in suspend */