diff -urN orig/sctp_asconf.c new/sctp_asconf.c --- orig/sctp_asconf.c Tue Apr 20 13:57:47 2004 +++ new/sctp_asconf.c Tue Apr 20 13:58:13 2004 @@ -326,7 +326,7 @@ /* IPv6 not enabled! */ /* FIX ME: currently sends back an invalid param error */ m_reply = sctp_asconf_error_response(aph->correlation_id, - SCTP_ERROR_INVALID_PARAM, (uint8_t)aph, aparam_length); + SCTP_ERROR_INVALID_PARAM, (uint8_t *)aph, aparam_length); #ifdef SCTP_DEBUG if (sctp_debug_on & SCTP_DEBUG_ASCONF1) { printf("process_asconf_add_ip: v6 disabled- skipping "); diff -urN orig/sctp_timer.c new/sctp_timer.c --- orig/sctp_timer.c Tue Apr 20 13:57:47 2004 +++ new/sctp_timer.c Tue Apr 20 21:20:41 2004 @@ -114,7 +114,9 @@ #include #include +#ifdef INET6 #include +#endif #include #include #include diff -urN orig/sctp_var.h new/sctp_var.h --- orig/sctp_var.h Tue Apr 20 13:57:47 2004 +++ new/sctp_var.h Tue Apr 20 13:58:44 2004 @@ -109,8 +109,9 @@ int sctp_usr_recvd __P((struct socket *, int)); - +#if defined(INET6) void ip_2_ip6_hdr __P((struct ip6_hdr *, struct ip *)); +#endif int sctp_bindx(struct socket *, int, struct sockaddr_storage *, int, int, struct proc *); diff -urN orig/sctputil.c new/sctputil.c --- orig/sctputil.c Tue Apr 20 22:30:33 2004 +++ new/sctputil.c Tue Apr 20 21:22:10 2004 @@ -130,7 +130,9 @@ #include #include +#ifdef INET6 #include +#endif #include #include #include