added weak symbols for inet_addr and inet_ntoa, normally exported by libnet.so
should be enough for bug #860, feel free to drop them if a libnet.so is created git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18891 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -204,3 +204,7 @@ inet_aton(const char *cp, struct in_addr *addr) {
|
|||||||
addr->s_addr = htonl(val);
|
addr->s_addr = htonl(val);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef inet_addr
|
||||||
|
#pragma weak inet_addr=__inet_addr
|
||||||
|
|
||||||
|
|||||||
@@ -60,3 +60,7 @@ inet_ntoa(struct in_addr in) {
|
|||||||
(void) inet_ntop(AF_INET, &in, ret, sizeof ret);
|
(void) inet_ntop(AF_INET, &in, ret, sizeof ret);
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef inet_ntoa
|
||||||
|
#pragma weak inet_ntoa=__inet_ntoa
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user