From 349bcf17f1d77825b5c7ed59d7233d0e2f936ef8 Mon Sep 17 00:00:00 2001 From: wangyu Date: Wed, 29 Aug 2018 18:08:42 -0700 Subject: [PATCH] fix mac compile --- network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network.cpp b/network.cpp index 3ecb18d..2699109 100644 --- a/network.cpp +++ b/network.cpp @@ -3036,7 +3036,7 @@ int try_to_list_and_bind2(int &fd,address_t address) //try to bind to a port,ma temp_bind_addr.sin_port = htons(port); temp_bind_addr.sin_addr.s_addr = local_ip_uint32;*/ - if (bind(fd, (struct sockaddr*)&address.inner, address.get_len()) !=0) + if (::bind(fd, (struct sockaddr*)&address.inner, address.get_len()) !=0) { mylog(log_debug,"bind fail\n"); return -1;