summaryrefslogtreecommitdiff
path: root/libgps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-01 23:57:01 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-01 23:57:01 -0500
commit44b3532e07d2e3790a75ccd5a75f19deefa71e82 (patch)
tree3d1bd2eaf9a5134dbcee9247e5f31343c7e96fde /libgps.h
parent4964c68cf4ebca29d745ba02c4ba3da4a68e9abd (diff)
downloadgpsd-44b3532e07d2e3790a75ccd5a75f19deefa71e82.tar.gz
Implement POSIX clock_gettime(3) for systems that lack it (like Mac OS X).
On Mac OS X it will get proper nanosecond precision; elsewhere, only microseconds. Hides the conformance failure from the rest of the code. All regression tests pass.
Diffstat (limited to 'libgps.h')
-rw-r--r--libgps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps.h b/libgps.h
index 914c4df2..9ef0ae37 100644
--- a/libgps.h
+++ b/libgps.h
@@ -10,6 +10,8 @@
#define SHM_PSEUDO_FD -1
#define DBUS_PSEUDO_FD -2
+#include "compiler.h"
+
#ifdef __cplusplus
extern "C" {
#endif