diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-10-20 01:24:42 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-10-20 01:24:42 +0000 |
commit | 74191ab4ca2d8072dbb71ddee390e8c1277148a3 (patch) | |
tree | 075367aaba3a368459af3e0806c915eba3e75ebe /pjlib/src/pj/sock_bsd.c | |
parent | 230f62310fd0ad7cf75569cfb064682369a5ab7a (diff) |
More ticket #972: compilation problem with IPPROTO_IPV6 constant (thanks Robert Cichielo for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2952 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/sock_bsd.c')
-rw-r--r-- | pjlib/src/pj/sock_bsd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c index eabd2bb2..83a5497e 100644 --- a/pjlib/src/pj/sock_bsd.c +++ b/pjlib/src/pj/sock_bsd.c @@ -87,7 +87,11 @@ const pj_uint16_t PJ_SOL_UDP = 0xFFFF; #ifdef SOL_IPV6 const pj_uint16_t PJ_SOL_IPV6 = SOL_IPV6; #elif defined(PJ_WIN32) && PJ_WIN32 -const pj_uint16_t PJ_SOL_IPV6 = IPPROTO_IPV6; +# if defined(IPPROTO_IPV6) || (_WIN32_WINNT >= 0x0501) + const pj_uint16_t PJ_SOL_IPV6 = IPPROTO_IPV6; +# else + const pj_uint16_t PJ_SOL_IPV6 = 41; +# endif #else const pj_uint16_t PJ_SOL_IPV6 = 0xFFFF; #endif /* SOL_IPV6 */ |