* GDB now links against libnetwork.so, instead of libsocket.so and libbind.so; these
won't exist anymore in the new stack. * Fixed build for the new stack and replace PF_INET with AF_INET (the former is not part of the POSIX specs, so I took the liberty and removed it). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17966 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3505a2a792
commit
b77f3fb961
@ -261,8 +261,7 @@ BinCommand gdb : gdb.c :
|
||||
|
||||
libroot.so
|
||||
libdebug.so
|
||||
libbind.so
|
||||
libsocket.so
|
||||
libnetwork.so
|
||||
;
|
||||
|
||||
# build ADA lexer
|
||||
|
@ -94,14 +94,14 @@ net_open (struct serial *scb, const char *name)
|
||||
}
|
||||
|
||||
if (use_udp)
|
||||
scb->fd = socket (PF_INET, SOCK_DGRAM, 0);
|
||||
scb->fd = socket (AF_INET, SOCK_DGRAM, 0);
|
||||
else
|
||||
scb->fd = socket (PF_INET, SOCK_STREAM, 0);
|
||||
scb->fd = socket (AF_INET, SOCK_STREAM, 0);
|
||||
|
||||
if (scb->fd < 0)
|
||||
return -1;
|
||||
|
||||
sockaddr.sin_family = PF_INET;
|
||||
sockaddr.sin_family = AF_INET;
|
||||
sockaddr.sin_port = htons (port);
|
||||
memcpy (&sockaddr.sin_addr.s_addr, hostent->h_addr,
|
||||
sizeof (struct in_addr));
|
||||
|
Loading…
Reference in New Issue
Block a user