Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
bctoolbox
Commits
9daabd3d
Commit
9daabd3d
authored
Jul 22, 2016
by
Ghislain MARY
Browse files
Fix build on Mac OS X.
parent
f0ac8d55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/utils/port.c
src/utils/port.c
+2
-0
No files found.
src/utils/port.c
View file @
9daabd3d
...
...
@@ -1238,6 +1238,8 @@ void bctbx_sockaddr_remove_nat64_mapping(const struct sockaddr *v6, struct socka
#ifdef _MSC_VER
if
((((
in6
->
sin6_addr
.
u
.
Word
[
0
]
<<
16
)
&
in6
->
sin6_addr
.
u
.
Word
[
1
])
==
htonl
(
0x0064
))
&&
(((
in6
->
sin6_addr
.
u
.
Word
[
2
]
<<
16
)
&
in6
->
sin6_addr
.
u
.
Word
[
3
])
==
htonl
(
0xff9b
)))
{
#elif __APPLE__
if
((
in6
->
sin6_addr
.
__u6_addr
.
__u6_addr32
[
0
]
==
htonl
(
0x0064
))
&&
(
in6
->
sin6_addr
.
__u6_addr
.
__u6_addr32
[
1
]
==
htonl
(
0xff9b
)))
{
#else
if
((
in6
->
sin6_addr
.
s6_addr32
[
0
]
==
htonl
(
0x0064
))
&&
(
in6
->
sin6_addr
.
s6_addr32
[
1
]
==
htonl
(
0xff9b
)))
{
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment