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

@ -221,10 +221,10 @@ int main(int argc, char *argv[])
if (argv[arg][0] == '-') {
for (optx = &argv[arg][1]; *optx; optx++) {
switch (*optx) {
#ifdef HAVE_IPV6
case '4':
ai_fam = AF_INET;
break;
#ifdef HAVE_IPV6
case '6':
ai_fam = AF_INET6;
break;