Mercurial > hg > freeDiameter
changeset 921:a0ab56aa089f
Fix compilation when SCTP_USE_MAPPED_ADDRESSES is true, and add a note about this for FreeBSD (seems to be needed at least for FreeBSD 9.1)
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 14 Feb 2013 14:12:23 +0100 |
parents | cb439d57d0c5 |
children | c7bf1a7a4e90 |
files | INSTALL.FreeBSD libfdcore/sctp.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/INSTALL.FreeBSD Tue Feb 12 18:42:33 2013 +0100 +++ b/INSTALL.FreeBSD Thu Feb 14 14:12:23 2013 +0100 @@ -8,7 +8,7 @@ cmake flex bison gnutls Then the cmake command had to look like: - cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ... + cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex -DSCTP_USE_MAPPED_ADDRESSES:BOOL=ON ... --------------------- @@ -45,7 +45,7 @@ # cd fD-build 7) Run cmake for freeDiameter (add other flags as you see fit, see INSTALL for more details) - # /usr/local/bin/cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ../freeDiameter + # /usr/local/bin/cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex -DSCTP_USE_MAPPED_ADDRESSES:BOOL=ON ../freeDiameter 8) Compile, optionnaly test # make
--- a/libfdcore/sctp.c Tue Feb 12 18:42:33 2013 +0100 +++ b/libfdcore/sctp.c Thu Feb 14 14:12:23 2013 +0100 @@ -653,7 +653,7 @@ #ifndef SCTP_USE_MAPPED_ADDRESSES if (ep->sa.sa_family == AF_INET6) #else /* SCTP_USE_MAPPED_ADDRESSES */ - if (target_family == AF_INET6) { + if (target_family == AF_INET6) #endif /* SCTP_USE_MAPPED_ADDRESSES */ sz = sizeof(sSA6); else