summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 3 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index 3a705923..3661c7f2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -665,10 +665,9 @@ else:
announce("You do not have the endian.h header file. RTCM V2 support disabled.")
env["rtcm104v2"] = False
- # check function after libraries, because some functions require libraries
+ # check function after libraries, because some function require libraries
# for example clock_gettime() require librt on Linux glibc < 2.17
- # Note: we now condition use of that function on _POSIX_TIMERS.
- for f in ("daemon", "strlcpy", "strlcat"):
+ for f in ("daemon", "strlcpy", "strlcat", "clock_gettime"):
if config.CheckFunc(f):
confdefs.append("#define HAVE_%s 1\n" % f.upper())
else:
@@ -737,8 +736,7 @@ size_t strlcpy(/*@out@*/char *dst, /*@in@*/const char *src, size_t size);
}
# endif
#endif
-#include <unistd.h>
-#ifndef _POSIX_TIMERS
+#ifndef HAVE_CLOCK_GETTIME
# ifdef __cplusplus
extern "C" {
# endif