Ignore:
Timestamp:
Aug 2, 2016 8:35:28 AM (8 years ago)
Author:
ming
Message:

Re #1945 (misc): Set IPv6 sockets to be IPv6 only

Auto-detect in configure script if this option is supported, and if yes, Set IPv6 sockets to be IPv6 only.

Thanks to Alexander Traud for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r5393 r5403  
    341341                                   [socklen_t xxx = 0;])], 
    342342                  [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) 
     343                   AC_MSG_RESULT(yes)], 
     344                  AC_MSG_RESULT(no)) 
     345 
     346dnl # Determine if IPV6_V6ONLY is available 
     347AC_MSG_CHECKING([if IPV6_V6ONLY is available]) 
     348AC_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) 
    343352                   AC_MSG_RESULT(yes)], 
    344353                  AC_MSG_RESULT(no)) 
Note: See TracChangeset for help on using the changeset viewer.