diff options
author | Eric Wong <e+absinthe@yhbt.net> | 2010-09-25 00:01:46 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-09-25 07:14:16 +0000 |
commit | 256cc7c8ffb441dcf2d2a2da3bbbcc82546962d9 (patch) | |
tree | 8e5f047b6a49838a57d244260c5a4ed95b0f271a /ext/raindrops | |
parent | 22a5a39d75faa890048d07ae4ea0d494acd414ce (diff) | |
download | raindrops-256cc7c8ffb441dcf2d2a2da3bbbcc82546962d9.tar.gz |
This allows us to build and link correctly on FreeBSD 7.0
Diffstat (limited to 'ext/raindrops')
-rw-r--r-- | ext/raindrops/linux_inet_diag.c | 2 |
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__ */ |