Hello.
When trying to compile epic4-1.1.12 on Solaris 7
you will get error regarding AF_INET6
missing definition.
This is because Solaris 7 doesn't natively
support IPv6
There are some missing ifdefs in the dcc.c
I'm attaching diff file if you are interested.
Regards.
Stas.
--- /src/orig/epic4-1.1.12/source/dcc.c Fri Jun 13 02:38:21 2003
+++ /src/epic4-1.1.12/source/dcc.c Wed Jul 16 10:14:28 2003
@@ -1173,11 +1173,13 @@
if (args && *args)
portnum = my_atol(next_arg(args, &args));
}
+#ifdef INET6
if (args[1] == '6')
{
next_arg(args, &args);
family = AF_INET6;
}
+#endif
if (args[1] == '4')
{
next_arg(args, &args);
@@ -1748,8 +1750,10 @@
if (args && *args)
portnum = my_atol(next_arg(args, &args));
}
+#ifdef INET6
else if (this_arg[1] == '6')
family = AF_INET6;
+#endif
else if (this_arg[1] == '4')
family = AF_INET;
@@ -2066,10 +2070,12 @@
break;
}
}
+#ifdef INET6
else if (FAMILY(offer) == AF_INET6)
{
/* Reserved for future expansion */
}
+#endif
#ifdef HACKED_DCC_WARNING
/*
@@ -2113,10 +2119,12 @@
}
}
}
+#ifdef INET6
else if (FAMILY(offer) == AF_INET6)
{
/* Reserved for future expansion */
}
+#endif /* INET6 */
#endif
/* CHECK HANDSHAKE PORT FOR VALIDITY */