mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Merge pull request #2138 from minrk/darwin-clock
only define clock macros on darwin if not already defined
This commit is contained in:
commit
c0b1114944
@ -38,9 +38,13 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
int clock_gettime (int clock_id, timespec *ts);
|
int clock_gettime (int clock_id, timespec *ts);
|
||||||
|
#ifndef CLOCK_REALTIME
|
||||||
#define CLOCK_REALTIME 0
|
#define CLOCK_REALTIME 0
|
||||||
|
#endif
|
||||||
|
#ifndef HAVE_CLOCK_GETTIME
|
||||||
#define HAVE_CLOCK_GETTIME
|
#define HAVE_CLOCK_GETTIME
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user