diff options
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r-- | ext/socket/option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index f815528fef..ae6e2dd1c2 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -21,8 +21,10 @@ optname_to_sym(int level, int optname) return constant_to_sym(optname, intern_so_optname); case IPPROTO_IP: return constant_to_sym(optname, intern_ip_optname); +#ifdef IPV6 case IPPROTO_IPV6: return constant_to_sym(optname, intern_ipv6_optname); +#endif case IPPROTO_TCP: return constant_to_sym(optname, intern_tcp_optname); case IPPROTO_UDP: |