libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 071c4bfa974d30e8a67ed4e1ffb27993c4c4797f
parent 47ee94c511129ba7f5e0f8c6cf79486f37009efa
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 16 Aug 2016 12:17:52 +0000

mhd_mono_clock.c: fixed compiler warning

Diffstat:
Msrc/microhttpd/mhd_mono_clock.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c @@ -76,7 +76,9 @@ static clockid_t mono_clock_id = _MHD_UNWANTED_CLOCK; #endif /* HAVE_CLOCK_GETTIME */ /* sync clocks; reduce chance of value wrap */ +#if defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_GET_TIME) || defined(HAVE_GETHRTIME) static time_t mono_clock_start; +#endif /* HAVE_CLOCK_GETTIME || HAVE_CLOCK_GET_TIME || HAVE_GETHRTIME */ static time_t sys_clock_start; #ifdef HAVE_GETHRTIME static hrtime_t hrtime_start;