summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-09 11:38:00 -0700
committerGary E. Miller <gem@rellim.com>2015-03-09 11:38:00 -0700
commitfdad0191d356a69601e10c382833cbd703147a3a (patch)
tree859ef22224df87b8a449af898fbbeefc91939a03 /SConstruct
parentb3de9cd98ac18f166d76a92f21bb7b9eabd93f54 (diff)
downloadgpsd-fdad0191d356a69601e10c382833cbd703147a3a.tar.gz
OS X, fix a duplicate defintion of clockid_t.
gpsd_config.h is sometimes double included. This hack was easier then fixing the double include...
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index cfccacca..15c779ac 100644
--- a/SConstruct
+++ b/SConstruct
@@ -745,7 +745,9 @@ size_t strlcpy(/*@out@*/char *dst, /*@in@*/const char *src, size_t size);
# ifdef __cplusplus
extern "C" {
# endif
+#ifndef clockid_t
typedef int clockid_t;
+# endif
/* OS X uses _STRUCT_TIMESPEC, but no clock_gettime */
#ifndef _STRUCT_TIMESPEC
struct timespec {