Merge pull request #2138 from minrk/darwin-clock

only define clock macros on darwin if not already defined
This commit is contained in:
Doron Somech 2016-09-28 14:54:25 +03:00 committed by GitHub
commit c0b1114944

View File

@ -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
{