about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/raindrops/linux_inet_diag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c
index ac27b19..04eaf39 100644
--- a/ext/raindrops/linux_inet_diag.c
+++ b/ext/raindrops/linux_inet_diag.c
@@ -1,4 +1,5 @@
 #include <ruby.h>
+#ifdef __linux__
 
 /* Ruby 1.8.6+ macros (for compatibility with Ruby 1.9) */
 #ifndef RSTRING_PTR
@@ -348,3 +349,4 @@ void Init_raindrops_linux_inet_diag(void)
 
         assert(OPLEN <= page_size && "bytecode OPLEN is not <= PAGE_SIZE");
 }
+#endif /* __linux__ */