Changeset 5403
- Timestamp:
- Aug 2, 2016 8:35:28 AM (8 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5393 r5403 752 752 oldincludedir 753 753 includedir 754 runstatedir755 754 localstatedir 756 755 sharedstatedir … … 875 874 sharedstatedir='${prefix}/com' 876 875 localstatedir='${prefix}/var' 877 runstatedir='${localstatedir}/run'878 876 includedir='${prefix}/include' 879 877 oldincludedir='/usr/include' … … 1128 1126 silent=yes ;; 1129 1127 1130 -runstatedir | --runstatedir | --runstatedi | --runstated \1131 | --runstate | --runstat | --runsta | --runst | --runs \1132 | --run | --ru | --r)1133 ac_prev=runstatedir ;;1134 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \1135 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \1136 | --run=* | --ru=* | --r=*)1137 runstatedir=$ac_optarg ;;1138 1139 1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1140 1129 ac_prev=sbindir ;; … … 1274 1263 datadir sysconfdir sharedstatedir localstatedir includedir \ 1275 1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1276 libdir localedir mandir runstatedir1265 libdir localedir mandir 1277 1266 do 1278 1267 eval ac_val=\$$ac_var … … 1427 1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1428 1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]1430 1418 --libdir=DIR object code libraries [EPREFIX/lib] 1431 1419 --includedir=DIR C header files [PREFIX/include] … … 5607 5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5608 5596 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPV6_V6ONLY is available" >&5 5598 $as_echo_n "checking if IPV6_V6ONLY is available... " >&6; } 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600 /* end confdefs.h. */ 5601 #include <sys/socket.h> 5602 #include <netinet/in.h> 5603 int 5604 main () 5605 { 5606 int opt = IPV6_V6ONLY; 5607 ; 5608 return 0; 5609 } 5610 _ACEOF 5611 if ac_fn_c_try_compile "$LINENO"; then : 5612 $as_echo "#define PJ_SOCK_HAS_IPV6_V6ONLY 1" >>confdefs.h 5613 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5615 $as_echo "yes" >&6; } 5616 else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618 $as_echo "no" >&6; } 5619 fi 5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5621 5609 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 5610 5623 $as_echo_n "checking if SO_ERROR is available... " >&6; } -
pjproject/trunk/aconfigure.ac
r5393 r5403 341 341 [socklen_t xxx = 0;])], 342 342 [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) 343 AC_MSG_RESULT(yes)], 344 AC_MSG_RESULT(no)) 345 346 dnl # Determine if IPV6_V6ONLY is available 347 AC_MSG_CHECKING([if IPV6_V6ONLY is available]) 348 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h> 349 #include <netinet/in.h>]], 350 [int opt = IPV6_V6ONLY;])], 351 [AC_DEFINE(PJ_SOCK_HAS_IPV6_V6ONLY,1) 343 352 AC_MSG_RESULT(yes)], 344 353 AC_MSG_RESULT(no)) -
pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in
r5247 r5403 84 84 #undef PJ_HAS_WS2TCPIP_H 85 85 86 #undef PJ_SOCK_HAS_IPV6_V6ONLY 86 87 #undef PJ_SOCK_HAS_INET_ATON 87 88 #undef PJ_SOCK_HAS_INET_PTON -
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r4860 r5403 540 540 &val, sizeof(val)); 541 541 } 542 #if defined(PJ_SOCK_HAS_IPV6_V6ONLY) && PJ_SOCK_HAS_IPV6_V6ONLY != 0 543 if (af == PJ_AF_INET6) { 544 pj_sock_setsockopt(*sock, PJ_SOL_IPV6, IPV6_V6ONLY, 545 &val, sizeof(val)); 546 } 547 #endif 542 548 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 543 549 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0
Note: See TracChangeset
for help on using the changeset viewer.