summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/inet_ntop.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-12 13:56:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-12 14:03:54 +0200
commit86c100439c5f33f5def3edf2ee05ea591b1774a4 (patch)
treeb0ea1050db2c5048c43b2aba70937fb0e40c3437 /cpukit/libnetworking/libc/inet_ntop.c
parenti386: Support thread-local storage (TLS) (diff)
downloadrtems-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 'cpukit/libnetworking/libc/inet_ntop.c')
-rw-r--r--cpukit/libnetworking/libc/inet_ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/inet_ntop.c b/cpukit/libnetworking/libc/inet_ntop.c
index b54eec714e..4ea2ee348c 100644
--- a/cpukit/libnetworking/libc/inet_ntop.c
+++ b/cpukit/libnetworking/libc/inet_ntop.c
@@ -194,11 +194,13 @@ inet_ntop6(const u_char *src, char *dst, socklen_t size)
return (dst);
}
+#ifndef __rtems__
/*
* Weak aliases for applications that use certain private entry points,
* and fail to include <arpa/inet.h>.
*/
#undef inet_ntop
__weak_reference(__inet_ntop, inet_ntop);
+#endif /* __rtems__ */
/*! \file */