diff options
Diffstat (limited to 'ext/socket/mkconstants.rb')
-rw-r--r-- | ext/socket/mkconstants.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 9dce82495b..da15fb4c79 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -228,11 +228,13 @@ ip_optname_to_int(char *str, int len, int *valp) <%= gen_name_to_int("str", "len", "valp", /\AIP_/, "IP_") %> } +#ifdef IPPROTO_IPV6 static int ipv6_optname_to_int(char *str, int len, int *valp) { <%= gen_name_to_int("str", "len", "valp", /\AIPV6_/, "IPV6_") %> } +#endif static int tcp_optname_to_int(char *str, int len, int *valp) |