Ben Bleything <ben / bleything.net> wrote:
> I've just tried 0.6.0 (and 0.5.0, and 0.4.0...) and I can no longer
> build it on osx. Here's a gist: https://gist.github.com/880329 ...
> This is problematic as I want it in my app's bundle for when I deploy
> on Linux, but I can't do that if I can't build it on my osx dev boxes.
> I'm sure I can figure something else out if it simply can't be built
> on osx, but considering that it once could I expect it's an oversight.

Oops, looks like I forgot to guard the TCP_INFO stuff properly
on non-Linux.  The following patch should fix it, prerelease gem
available here:
  http://raindrops.bogomips.org/files/raindrops-0.6.0.1.gdbfe.gem

I'll roll 0.6.0.1 if you can confirm that fixes it, thanks for the
report!

From dbfe01c60d0d231f42e18768cbb8b23612f281fc Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson / yhbt.net>
Date: Mon, 21 Mar 2011 15:17:21 -0700
Subject: [PATCH] tcp_info: mark this as Linux-only

We can't even pull in linux/*.h headers to check
for TCP_INFO.
---
 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__ */
-- 
Eric Wong