[rtems-libbsd commit] Remove unused inet_* weak references

Sebastian Huber sebh at rtems.org
Thu Jun 22 04:57:12 UTC 2017


Module:    rtems-libbsd
Branch:    master
Commit:    9db59c71ad8bc1f1852838d147a29467a1cd6e3d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=9db59c71ad8bc1f1852838d147a29467a1cd6e3d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 22 06:56:52 2017 +0200

Remove unused inet_* weak references

This change requires a Newlib from 2017-06-12 or later.

---

 freebsd/lib/libc/inet/nsap_addr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/freebsd/lib/libc/inet/nsap_addr.c b/freebsd/lib/libc/inet/nsap_addr.c
index e1fa05b..27449b4 100644
--- a/freebsd/lib/libc/inet/nsap_addr.c
+++ b/freebsd/lib/libc/inet/nsap_addr.c
@@ -111,6 +111,7 @@ inet_nsap_ntoa(int binlen, const u_char *binary, char *ascii) {
 	return (start);
 }
 
+#ifndef __rtems__
 /*
  * Weak aliases for applications that use certain private entry points,
  * and fail to include <arpa/inet.h>.
@@ -119,5 +120,6 @@ inet_nsap_ntoa(int binlen, const u_char *binary, char *ascii) {
 __weak_reference(__inet_nsap_addr, inet_nsap_addr);
 #undef inet_nsap_ntoa
 __weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa);
+#endif /* __rtems__ */
 
 /*! \file */



More information about the vc mailing list