diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-04 19:26:38 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-04 19:26:38 -0700 |
commit | 537e4c341137a45330e28376e8f29da7df44808f (patch) | |
tree | f0219be01788f3c1b11c2f3221e9e2a64ec8a7b7 /ext/kgio/extconf.rb | |
parent | f2a3998e0c0f63ad14acf5ccc0141fc6cdce24e3 (diff) | |
download | kgio-537e4c341137a45330e28376e8f29da7df44808f.tar.gz |
This changes our semantics, but it's unlikely anybody relies on EINTR right now...
Diffstat (limited to 'ext/kgio/extconf.rb')
-rw-r--r-- | ext/kgio/extconf.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/kgio/extconf.rb b/ext/kgio/extconf.rb index 5beb247..f44b8c8 100644 --- a/ext/kgio/extconf.rb +++ b/ext/kgio/extconf.rb @@ -1,7 +1,12 @@ require 'mkmf' $CPPFLAGS << ' -D_GNU_SOURCE' $CPPFLAGS << ' -DPOSIX_C_SOURCE=1' - +$CPPFLAGS += '-D_POSIX_C_SOURCE=200112L' +unless have_macro('CLOCK_MONOTONIC', 'time.h') + have_func('CLOCK_MONOTONIC', 'time.h') +end +have_type('clockid_t', 'time.h') +have_library('rt', 'clock_gettime', 'time.h') have_func("poll", "poll.h") have_func("getaddrinfo", %w(sys/types.h sys/socket.h netdb.h)) or abort "getaddrinfo required" |