--- ./attic/backwards.c.orig 2019-09-02 19:17:36.000000000 -0700
+++ ./attic/backwards.c 2019-09-03 22:22:14.000000000 -0700
+#include "ntp_machine.h" /* For clock_gettime fallback */
#define UNUSED_ARG(arg) ((void)(arg))
static void ts_print(struct timespec *ts0, struct timespec *ts1);
--- ./attic/clocks.c.orig 2019-09-02 19:17:36.000000000 -0700
+++ ./attic/clocks.c 2019-09-03 22:22:14.000000000 -0700
+#include "ntp_machine.h" /* For clock_gettime fallback */
--- ./attic/digest-timing.c.orig 2019-09-02 19:17:36.000000000 -0700
+++ ./attic/digest-timing.c 2019-09-03 22:22:14.000000000 -0700
#include <openssl/rand.h>
#include <openssl/objects.h>
+#include "ntp_machine.h" /* For clock_gettime fallback */
#define UNUSED_ARG(arg) ((void)(arg))
--- ./include/ntp_machine.h.orig 2019-09-02 19:17:36.000000000 -0700
+++ ./include/ntp_machine.h 2019-09-03 22:22:14.000000000 -0700
- * Pacify platforms that don't have a real clock_gettime(2),
+ * Handle platforms that don't have a real clock_gettime(2),
+ * notably some versions of Mac OS X.
-#define CLOCK_REALTIME 0
-#define CLOCK_MONOTONIC 1
-int clock_gettime(clockid_t clock_id, struct timespec *tp);
+#define CLOCK_REALTIME 0
+#define CLOCK_MONOTONIC 1
+#define CLOCK_MONOTONIC_RAW 2
+#include <mach/mach_time.h>