mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-25 07:41:10 +01: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 <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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user