summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/inet_ntoa.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_ntoa.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_ntoa.c')
-rw-r--r--cpukit/libnetworking/libc/inet_ntoa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/inet_ntoa.c b/cpukit/libnetworking/libc/inet_ntoa.c
index 0fecfe36da..80f662d929 100644
--- a/cpukit/libnetworking/libc/inet_ntoa.c
+++ b/cpukit/libnetworking/libc/inet_ntoa.c
@@ -67,6 +67,7 @@ inet_ntoa_r(struct in_addr in, char *buf, socklen_t size)
return (buf);
}
+#ifndef __rtems__
/*
* Weak aliases for applications that use certain private entry points,
* and fail to include <arpa/inet.h>.
@@ -74,5 +75,6 @@ inet_ntoa_r(struct in_addr in, char *buf, socklen_t size)
#undef inet_ntoa
__weak_reference(__inet_ntoa, inet_ntoa);
__weak_reference(__inet_ntoa_r, inet_ntoa_r);
+#endif /* __rtems__ */
/*! \file */