pjproject_bundled: Fix missing inclusion of symbols
[asterisk/asterisk.git] / third-party / pjproject / patches / 0003-r5403-pjsip_IPV6_V6ONLY.patch
1 --- a/pjlib/src/pj/sock_bsd.c
2 +++ b/pjlib/src/pj/sock_bsd.c
3 @@ -539,6 +539,10 @@
4             pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),
5                                &val, sizeof(val));
6         }
7 +       if (af != PJ_AF_INET) { /* Linux Kernel 2.4.21; June 2003 */
8 +           pj_sock_setsockopt(*sock, PJ_SOL_IPV6, IPV6_V6ONLY,
9 +                              &val, sizeof(val));
10 +       }
11  #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \
12      PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0
13         if (type == pj_SOCK_DGRAM()) {