From: André Zwing <nerv(a)dawncrow.de> Signed-off-by: André Zwing <nerv(a)dawncrow.de> --- dlls/ws2_32/unixlib.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/ws2_32/unixlib.c b/dlls/ws2_32/unixlib.c index 0625c5c72ce..30e1970716b 100644 --- a/dlls/ws2_32/unixlib.c +++ b/dlls/ws2_32/unixlib.c @@ -890,10 +890,10 @@ static NTSTATUS unix_gethostbyaddr( void *args ) } -#ifdef HAVE_LINUX_GETHOSTBYNAME_R_6 static NTSTATUS unix_gethostbyname( void *args ) { struct gethostbyname_params *params = args; +#ifdef HAVE_LINUX_GETHOSTBYNAME_R_6 struct hostent stack_host, *unix_host; char *unix_buffer, *new_buffer; int unix_size = 1024; @@ -921,11 +921,7 @@ static NTSTATUS unix_gethostbyname( void *args ) free( unix_buffer ); return ret; -} #else -static NTSTATUS unix_gethostbyname( void *args ) -{ - struct gethostbyname_params *params = args; struct hostent *unix_host; int ret; @@ -942,8 +938,8 @@ static NTSTATUS unix_gethostbyname( void *args ) pthread_mutex_unlock( &host_mutex ); return ret; -} #endif +} static NTSTATUS unix_gethostname( void *args ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/549