mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +01:00
fix: building libzmq fails with error src/clock.cpp:131:16: error: unused variable 'nsecs_per_usec'
This commit is contained in:
parent
72b03aa281
commit
06aba27b04
@ -195,6 +195,7 @@ uint64_t zmq::clock_t::now_us ()
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
LIBZMQ_UNUSED (nsecs_per_usec);
|
||||||
// Use POSIX gettimeofday function to get precise time.
|
// Use POSIX gettimeofday function to get precise time.
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int rc = gettimeofday (&tv, NULL);
|
int rc = gettimeofday (&tv, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user