From 6cc7e96f972d9a648bef9d49ca245282250a5502 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 12 Jan 2011 16:24:23 -0800 Subject: attempt to support broken/crazy systems clock_gettime() is not available on some systems and/or CLOCK_MONOTONIC. This is totally broken considering the POSIX standard was 10 years ago, now. Nothing in gnulib, either, wtf?! http://www.gnu.org/software/gnulib/manual/html_node/clock_005fgettime.html --- ext/clogger_ext/extconf.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/clogger_ext/extconf.rb') diff --git a/ext/clogger_ext/extconf.rb b/ext/clogger_ext/extconf.rb index 60c46a7..d87d8c2 100644 --- a/ext/clogger_ext/extconf.rb +++ b/ext/clogger_ext/extconf.rb @@ -17,6 +17,7 @@ begin $CPPFLAGS += '-D_POSIX_SOURCE_200112L' have_func('CLOCK_MONOTONIC', 'time.h') end + have_func('clock_gettime', 'time.h') have_func('localtime_r', 'time.h') or raise "localtime_r needed" have_func('gmtime_r', 'time.h') or raise "gmtime_r needed" have_func('rb_str_set_len', 'ruby.h') -- cgit v1.2.3-24-ge0c7