diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-05-01 14:54:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-05-01 14:54:00 -0400 |
commit | e728556c190a7ef4b6a7a02d033d844df4ef6146 (patch) | |
tree | afbffcc463abfd4decbbfc1a3b9738ae96af00d2 /SConstruct | |
parent | 8501a9c98c60288024cc8b173268d3536d8ab2fa (diff) | |
download | gpsd-e728556c190a7ef4b6a7a02d033d844df4ef6146.tar.gz |
Prevent compilation failure under gcc 4.5 and earlier.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |