mirror of
https://github.com/Kiritow/GSock.git
synced 2024-03-22 13:10:51 +08:00
Fix compile error with VS
This commit is contained in:
parent
6aebdca0bc
commit
ffcfcb5baf
|
@ -217,7 +217,7 @@ int sock::setrecvtime(int Second)
|
|||
}
|
||||
|
||||
//forgive me, but writing code in hospital is really not a good experience.
|
||||
typedef int (*_sock_getname_callback_t)(int,sockaddr*,socklen_t*);
|
||||
using _sock_getname_callback_t = decltype(getsockname);
|
||||
|
||||
static int _sock_getname_call(int sfd,std::string& ip,int& port,_sock_getname_callback_t fn)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user