mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-29 03:09:51 +02:00
mingw port.
relabel replaced functions to avoid conflicts with library. git-svn-id: file:///svn/unbound/trunk@1093 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+1
-1
@@ -960,7 +960,7 @@ service(char* bind_str, int bindport, char* serv_str, size_t memsize,
|
||||
#ifdef SO_REUSEADDR
|
||||
if(1) {
|
||||
int on = 1;
|
||||
if(setsockopt(listen_s, SOL_SOCKET, SO_REUSEADDR, &on,
|
||||
if(setsockopt(listen_s, SOL_SOCKET, SO_REUSEADDR, (void*)&on,
|
||||
(socklen_t)sizeof(on)) < 0)
|
||||
fatal_exit("setsockopt(.. SO_REUSEADDR ..) failed: %s",
|
||||
strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user