Skip to content

Commit

Permalink
tcp_info: mark this as Linux-only
Browse files Browse the repository at this point in the history
We can't even pull in linux/*.h headers to check
for TCP_INFO.
  • Loading branch information
Eric Wong committed Mar 21, 2011
1 parent f8fe72d commit dbfe01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/raindrops/linux_tcp_info.c
@@ -1,3 +1,4 @@
#ifdef __linux__
#include <ruby.h>
#include <sys/socket.h>
#include <netinet/in.h>
Expand Down Expand Up @@ -168,3 +169,4 @@ void Init_raindrops_linux_tcp_info(void)
TCPI_DEFINE_METHOD(total_retrans);
}
#endif /* TCP_INFO */
#endif /* __linux__ */

0 comments on commit dbfe01c

Please sign in to comment.