From 86c100439c5f33f5def3edf2ee05ea591b1774a4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 12 Jun 2017 13:56:40 +0200 Subject: network: Remove FreeBSD specific hack For whatever reason FreeBSD renames several functions provided by and uses weak references to provide the standard function names. This causes problems on targets lacking proper support for weak references. We do not need this function renaming on RTEMS.lk:x Update #2833. --- cpukit/libnetworking/libc/res_stubs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/libnetworking/libc/res_stubs.c') diff --git a/cpukit/libnetworking/libc/res_stubs.c b/cpukit/libnetworking/libc/res_stubs.c index eb32ccb901..3e8b4ee45b 100644 --- a/cpukit/libnetworking/libc/res_stubs.c +++ b/cpukit/libnetworking/libc/res_stubs.c @@ -43,6 +43,7 @@ #include #include +#ifndef __rtems__ __weak_reference(__inet_addr, inet_addr); __weak_reference(__inet_aton, inet_aton); __weak_reference(__inet_lnaof, inet_lnaof); @@ -57,6 +58,7 @@ __weak_reference(__inet_pton, inet_pton); __weak_reference(__inet_ntop, inet_ntop); __weak_reference(__inet_nsap_addr, inet_nsap_addr); __weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa); +#endif /* __rtems__ */ __weak_reference(__sym_ston, sym_ston); __weak_reference(__sym_ntos, sym_ntos); -- cgit v1.2.3