diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-23 18:23:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-23 18:23:12 +0000 |
commit | 9d0f953af2400c13f8a15f68e625d3d60351dd95 (patch) | |
tree | 67d3f59526cf414240fe6ff280edca5383953510 | |
parent | b06f52c0a5e6f4def4c98e951dead5d8ab491ed8 (diff) | |
download | libmicrohttpd-9d0f953af2400c13f8a15f68e625d3d60351dd95.tar.gz libmicrohttpd-9d0f953af2400c13f8a15f68e625d3d60351dd95.zip |
only print clock if CLOCK_MONOTONIC is defined
-rw-r--r-- | src/spdy2http/proxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/spdy2http/proxy.c b/src/spdy2http/proxy.c index 0623e23d..c7e37f78 100644 --- a/src/spdy2http/proxy.c +++ b/src/spdy2http/proxy.c | |||
@@ -1174,9 +1174,11 @@ run () | |||
1174 | { | 1174 | { |
1175 | 1175 | ||
1176 | struct timespec ts; | 1176 | struct timespec ts; |
1177 | #ifdef CLOCK_MONOTONIC | ||
1177 | if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) | 1178 | if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) |
1178 | PRINT_VERBOSE2("time now %lld %lld", (unsigned long long)ts.tv_sec, (unsigned long long)ts.tv_nsec); | 1179 | PRINT_VERBOSE2("time now %lld %lld", (unsigned long long)ts.tv_sec, (unsigned long long)ts.tv_nsec); |
1179 | } | 1180 | } |
1181 | #endif | ||
1180 | } | 1182 | } |
1181 | while(loop); | 1183 | while(loop); |
1182 | 1184 | ||