From 3f3b285aaed61ad7cebca07a8b55068f0c3c9e32 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 3 Jul 2015 13:55:24 +0200 Subject: [PATCH] collectd-tg: Remove use of NAN. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This broke the build under Solaris, once again *sigh*. collectd-tg.c: In function ‘dtime’: collectd-tg.c:108:12: error: ‘NAN’ undeclared (first use in this function) return NAN; ^ --- src/collectd-tg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectd-tg.c b/src/collectd-tg.c index 760162c7..80473e0e 100644 --- a/src/collectd-tg.c +++ b/src/collectd-tg.c @@ -105,7 +105,7 @@ static double dtime (void) /* {{{ */ struct timespec ts = { 0 }; if (clock_gettime (CLOCK_MONOTONIC, &ts) != 0) - return NAN; + perror ("clock_gettime"); return ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1e9); } /* }}} double dtime */ -- 2.11.0