ext/raindrops/extconf.rb in raindrops-0.5.0 vs ext/raindrops/extconf.rb in raindrops-0.6.0
- old
+ new
@@ -1,17 +1,18 @@
require 'mkmf'
+dir_config('atomic_ops')
have_func('mmap', 'sys/mman.h') or abort 'mmap() not found'
have_func('munmap', 'sys/mman.h') or abort 'munmap() not found'
$CPPFLAGS += " -D_GNU_SOURCE "
have_func('mremap', 'sys/mman.h')
$CPPFLAGS += " -D_BSD_SOURCE -D_XOPEN_SOURCE=600 "
have_func("getpagesize", "unistd.h")
-have_func("rb_struct_alloc_noinit")
have_func('rb_thread_blocking_region')
+have_func('rb_thread_io_blocking_region')
checking_for "GCC 4+ atomic builtins" do
src = <<SRC
int main(int argc, char * const argv[]) {
volatile unsigned long i = 0;
@@ -41,8 +42,6 @@
Users of Debian-based distros may run:
apt-get install libatomic-ops-dev
SRC
-
-dir_config('raindrops')
create_makefile('raindrops_ext')