about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-21 15:17:21 -0700
committerEric Wong <normalperson@yhbt.net>2011-03-21 15:17:21 -0700
commitdbfe01c60d0d231f42e18768cbb8b23612f281fc (patch)
tree71328b42b251db1d206f1e7d0c1fc2cd6c66ed14
parentf8fe72d588cf50fa0c52058d46980af8bfa012bf (diff)
downloadraindrops-dbfe01c60d0d231f42e18768cbb8b23612f281fc.tar.gz
We can't even pull in linux/*.h headers to check
for TCP_INFO.
-rw-r--r--ext/raindrops/linux_tcp_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/raindrops/linux_tcp_info.c b/ext/raindrops/linux_tcp_info.c
index 1a2048c..ce1c2d3 100644
--- a/ext/raindrops/linux_tcp_info.c
+++ b/ext/raindrops/linux_tcp_info.c
@@ -1,3 +1,4 @@
+#ifdef __linux__
 #include <ruby.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -168,3 +169,4 @@ void Init_raindrops_linux_tcp_info(void)
         TCPI_DEFINE_METHOD(total_retrans);
 }
 #endif /* TCP_INFO */
+#endif /* __linux__ */