Commit 978c5c34 authored by Min RK's avatar Min RK

only define clock macros on darwin if not already defined

clang from Xcode 8 has these already defined, causing duplicate macro warnings
parent c7518993
......@@ -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