Commit 8548fc29 authored by Alexandre Julliard's avatar Alexandre Julliard

Portability fixes.

parent 0977658d
......@@ -798,6 +798,7 @@ NTSTATUS WINAPI RtlQueryTimeZoneInformation(LPTIME_ZONE_INFORMATION tzinfo)
*/
NTSTATUS WINAPI RtlSetTimeZoneInformation( const TIME_ZONE_INFORMATION *tzinfo )
{
#ifdef HAVE_SETTIMEOFDAY
struct timezone tz;
tz.tz_minuteswest = tzinfo->Bias;
......@@ -808,6 +809,7 @@ NTSTATUS WINAPI RtlSetTimeZoneInformation( const TIME_ZONE_INFORMATION *tzinfo )
#endif
if(!settimeofday(NULL, &tz))
return STATUS_SUCCESS;
#endif
return STATUS_PRIVILEGE_NOT_HELD;
}
......
......@@ -306,13 +306,9 @@ static BOOL NB_Lookup(LPCSTR host, struct sockaddr_in *addr)
if(r<0)
goto err;
if(0==inet_aton("255.255.255.255", (struct in_addr *)&sin.sin_addr.s_addr))
{
FIXME("Error getting bcast address\n");
goto err;
}
sin.sin_family = AF_INET;
sin.sin_port = htons(137);
sin.sin_addr.s_addr = 0xffffffff;
len = NB_NameReq(host,buffer,sizeof(buffer));
if(len<=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment