From: Jérémie Galarneau Date: Fri, 6 Sep 2019 17:33:18 +0000 (-0400) Subject: Fix: time constants already defined on macOS X-Git-Tag: v2.12.0-rc1~433 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=efef32e9dabe51901ea2a0d1f19c69a9c37997eb;hp=efef32e9dabe51901ea2a0d1f19c69a9c37997eb Fix: time constants already defined on macOS Include the compatibility time.h header in the common/time.h to override any platform-defined constants. It seems that the NSEC_PER_SEC (and other similar definitions) are defined to nothing on macOS. This was already fixed in the compatibility header in the past. This also adds USEC_PER_SEC to the list of undef-initions on macOS. Signed-off-by: Jérémie Galarneau ---