On Fri, Jan 23, 2015 at 01:17:36AM +0000, Dave Tucker wrote: > Signed-off-by: Dave Tucker <d...@dtucker.co.uk>
> -#ifndef _WIN32 > +#if !defined(__APPLE__) && !defined(_WIN32) > static inline ovs_be64 > htonll(uint64_t n) It's probably time to add an autoconf test for htonll() instead of using OS-specific tests. > diff --git a/lib/timeval.c b/lib/timeval.c > index 6173aff..2c354de 100644 > --- a/lib/timeval.c > +++ b/lib/timeval.c > @@ -56,6 +56,19 @@ typedef unsigned int clockid_t; > const static unsigned long long unix_epoch = 116444736000000000; > #endif /* _WIN32 */ > > +#ifdef __APPLE__ > +typedef unsigned int clockid_t; > + > +#ifndef CLOCK_MONOTONIC > +#define CLOCK_MONOTONIC 0 > +#endif > + > +#ifndef CLOCK_REALTIME > +#define CLOCK_REALTIME 0 > +#endif > + > +#endif /* __APPLE__ */ I guess that we could just move the existing checks for these constants outside the "#ifdef _WIN32", and that's probably a better solution. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev