Commit c0b11149 authored by Doron Somech's avatar Doron Somech Committed by GitHub

Merge pull request #2138 from minrk/darwin-clock

only define clock macros on darwin if not already defined
parents 91e121c9 978c5c34
......@@ -38,9 +38,13 @@
#include <time.h>
#include <sys/time.h>
int clock_gettime (int clock_id, timespec *ts);
#ifndef CLOCK_REALTIME
#define CLOCK_REALTIME 0
#endif
#ifndef HAVE_CLOCK_GETTIME
#define HAVE_CLOCK_GETTIME
#endif
#endif
namespace zmq
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment