From b77f3fb96146885370c271876ed1e47ad11df742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 29 Jun 2006 17:52:39 +0000 Subject: [PATCH] * 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 --- src/bin/gdb/gdb/Jamfile | 3 +-- src/bin/gdb/gdb/ser-tcp.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bin/gdb/gdb/Jamfile b/src/bin/gdb/gdb/Jamfile index 2699815a27..647582fbb3 100644 --- a/src/bin/gdb/gdb/Jamfile +++ b/src/bin/gdb/gdb/Jamfile @@ -261,8 +261,7 @@ BinCommand gdb : gdb.c : libroot.so libdebug.so - libbind.so - libsocket.so + libnetwork.so ; # build ADA lexer diff --git a/src/bin/gdb/gdb/ser-tcp.c b/src/bin/gdb/gdb/ser-tcp.c index a272f16f1c..201ba658d4 100644 --- a/src/bin/gdb/gdb/ser-tcp.c +++ b/src/bin/gdb/gdb/ser-tcp.c @@ -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));