Build fix; I obviously forgot to compile the stack itself after the changes :-/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19368 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <new>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
|
||||
void socket_delete(net_socket *socket);
|
||||
@@ -554,7 +555,7 @@ socket_getsockopt(net_socket *socket, int level, int option, void *value,
|
||||
case SO_RCVTIMEO:
|
||||
case SO_SNDTIMEO:
|
||||
{
|
||||
if (*_length < sizeof(struct timeval))
|
||||
if (*_length < (int)sizeof(struct timeval))
|
||||
return B_BAD_VALUE;
|
||||
|
||||
bigtime_t timeout;
|
||||
@@ -566,8 +567,8 @@ socket_getsockopt(net_socket *socket, int level, int option, void *value,
|
||||
timeout = 0;
|
||||
|
||||
struct timeval *timeval = (struct timeval *)value;
|
||||
timeval->tv_secs = timeout / 1000000LL;
|
||||
timeval->tv_usecs = timeout % 1000000LL;
|
||||
timeval->tv_sec = timeout / 1000000LL;
|
||||
timeval->tv_usec = timeout % 1000000LL;
|
||||
|
||||
*_length = sizeof(struct timeval);
|
||||
return B_OK;
|
||||
|
||||
Reference in New Issue
Block a user