Allow the -4 option even in an IPv4-only configuration

Allow the -4 option even if IPv6 isn't compiled in.
This commit is contained in:
H. Peter Anvin 2008-07-23 14:36:18 -04:00
parent 4bdac0b536
commit c3a5c712e2
4 changed files with 8 additions and 7 deletions

View file

@ -298,10 +298,10 @@ int main(int argc, char **argv)
while ((c = getopt(argc, argv, "46cspvVlLa:B:u:U:r:t:T:R:m:")) != -1)
switch (c) {
#ifdef HAVE_IPV6
case '4':
ai_fam = AF_INET;
break;
#ifdef HAVE_IPV6
case '6':
ai_fam = AF_INET6;
break;