about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/raindrops/linux_inet_diag.c2
-rw-r--r--lib/raindrops.rb5
2 files changed, 2 insertions, 5 deletions
diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c
index a6bf302..78859cb 100644
--- a/ext/raindrops/linux_inet_diag.c
+++ b/ext/raindrops/linux_inet_diag.c
@@ -378,8 +378,6 @@ void Init_raindrops_linux_inet_diag(void)
 #ifndef HAVE_RB_STRUCT_ALLOC_NOINIT
         id_new = rb_intern("new");
 #endif
-        rb_require("raindrops/linux");
-
         page_size = getpagesize();
 
         assert(OPLEN <= page_size && "bytecode OPLEN is not <= PAGE_SIZE");
diff --git a/lib/raindrops.rb b/lib/raindrops.rb
index 354ae39..f4d6b18 100644
--- a/lib/raindrops.rb
+++ b/lib/raindrops.rb
@@ -27,9 +27,8 @@ class Raindrops
     end
   end
 
-  # TODO: pure Ruby version for single processes
-  require 'raindrops_ext'
-
+  autoload :Linux, 'raindrops/linux'
   autoload :Struct, 'raindrops/struct'
   autoload :Middleware, 'raindrops/middleware'
 end
+require 'raindrops_ext'