diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-21 15:17:21 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-21 15:17:21 -0700 |
commit | dbfe01c60d0d231f42e18768cbb8b23612f281fc (patch) | |
tree | 71328b42b251db1d206f1e7d0c1fc2cd6c66ed14 | |
parent | f8fe72d588cf50fa0c52058d46980af8bfa012bf (diff) | |
download | raindrops-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.c | 2 |
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__ */ |