diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-12 13:56:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-12 14:03:54 +0200 |
commit | 86c100439c5f33f5def3edf2ee05ea591b1774a4 (patch) | |
tree | b0ea1050db2c5048c43b2aba70937fb0e40c3437 /cpukit/libnetworking/libc/res_stubs.c | |
parent | i386: Support thread-local storage (TLS) (diff) | |
download | rtems-86c100439c5f33f5def3edf2ee05ea591b1774a4.tar.bz2 |
network: Remove FreeBSD specific hack
For whatever reason FreeBSD renames several functions provided by
<arpa/inet.h> 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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/libc/res_stubs.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <sys/types.h> #include <sys/cdefs.h> +#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); |