summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-05-01 14:54:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-05-01 14:54:00 -0400
commite728556c190a7ef4b6a7a02d033d844df4ef6146 (patch)
treeafbffcc463abfd4decbbfc1a3b9738ae96af00d2
parent8501a9c98c60288024cc8b173268d3536d8ab2fa (diff)
downloadgpsd-e728556c190a7ef4b6a7a02d033d844df4ef6146.tar.gz
Prevent compilation failure under gcc 4.5 and earlier.
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index d7fca592..b3693890 100644
--- a/SConstruct
+++ b/SConstruct
@@ -738,8 +738,9 @@ size_t strlcpy(/*@out@*/char *dst, /*@in@*/const char *src, size_t size);
# ifdef __cplusplus
extern "C" {
# endif
-#ifndef clockid_t
+#ifndef CLOCKID_T_DEFINED
typedef int clockid_t;
+#define CLOCKID_T_DEFINED
# endif
/* OS X uses _STRUCT_TIMESPEC, but no clock_gettime */
#ifndef _STRUCT_TIMESPEC