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:
Jérôme Duval
2006-09-19 16:17:02 +00:00
parent d75882bf8b
commit 7d725e0df4
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -204,3 +204,7 @@ inet_aton(const char *cp, struct in_addr *addr) {
addr->s_addr = htonl(val);
return (1);
}
#undef inet_addr
#pragma weak inet_addr=__inet_addr
+4
View File
@@ -60,3 +60,7 @@ inet_ntoa(struct in_addr in) {
(void) inet_ntop(AF_INET, &in, ret, sizeof ret);
return (ret);
}
#undef inet_ntoa
#pragma weak inet_ntoa=__inet_ntoa