forked from OSchip/llvm-project
One more try at the whole compiling thing...
Need to actually use the right type in both parts of the cast. llvm-svn: 301506
This commit is contained in:
parent
c246a4c973
commit
26beacc19e
|
@ -191,7 +191,7 @@ Error TCPSocket::Listen(llvm::StringRef name, int backlog) {
|
|||
// enable local address reuse
|
||||
int option_value = 1;
|
||||
set_socket_option_arg_type option_value_p =
|
||||
reinterpret_cast<get_socket_option_arg_type>(&option_value);
|
||||
reinterpret_cast<set_socket_option_arg_type>(&option_value);
|
||||
::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, option_value_p,
|
||||
sizeof(option_value));
|
||||
|
||||
|
|
Loading…
Reference in New Issue