diff options
author | Micael Karlberg <[email protected]> | 2018-09-20 17:42:03 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-20 17:42:03 +0200 |
commit | e3ace52f8e7d893d170ff5eb60d22c27ab9ec1e5 (patch) | |
tree | 21fc6f57ad428db7968d99d0f1d029d9c01c2bfb /erts/emulator/nifs/common/socket_util.c | |
parent | a866bd04c5ce5f418f0e11685713af2992ef0ce8 (diff) | |
download | otp-e3ace52f8e7d893d170ff5eb60d22c27ab9ec1e5.tar.gz otp-e3ace52f8e7d893d170ff5eb60d22c27ab9ec1e5.tar.bz2 otp-e3ace52f8e7d893d170ff5eb60d22c27ab9ec1e5.zip |
[socket-nif] Various fixes related to FreeBSD environment
Diffstat (limited to 'erts/emulator/nifs/common/socket_util.c')
-rw-r--r-- | erts/emulator/nifs/common/socket_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_util.c b/erts/emulator/nifs/common/socket_util.c index a73b40cd29..8bb725fb5b 100644 --- a/erts/emulator/nifs/common/socket_util.c +++ b/erts/emulator/nifs/common/socket_util.c @@ -1238,7 +1238,11 @@ char* esock_decode_protocol(ErlNifEnv* env, *proto = IPPROTO_IP; #endif } else if (COMPARE(esock_atom_ipv6, eProto) == 0) { +#if defined(SOL_IPV6) *proto = SOL_IPV6; +#else + *proto = IPPROTO_IPV6; +#endif } else if (COMPARE(esock_atom_tcp, eProto) == 0) { *proto = IPPROTO_TCP; } else if (COMPARE(esock_atom_udp, eProto) == 0) { |