summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/libc/inet/inet_netof.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-16 07:31:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-16 07:37:25 +0200
commitb83012a9f9f1551d9d223c3126d0f43aba79db62 (patch)
tree050fadbaa46e19b7926af55a2202625100c7290a /freebsd/lib/libc/inet/inet_netof.c
parentUse <sys/lock.h> provided by Newlib (diff)
downloadrtems-libbsd-b83012a9f9f1551d9d223c3126d0f43aba79db62.tar.bz2
Remove unused inet_* weak references
This change requires a Newlib from 2017-06-12 or later.
Diffstat (limited to 'freebsd/lib/libc/inet/inet_netof.c')
-rw-r--r--freebsd/lib/libc/inet/inet_netof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/lib/libc/inet/inet_netof.c b/freebsd/lib/libc/inet/inet_netof.c
index 7770c2dd..24d9c91d 100644
--- a/freebsd/lib/libc/inet/inet_netof.c
+++ b/freebsd/lib/libc/inet/inet_netof.c
@@ -60,11 +60,13 @@ inet_netof(struct in_addr in)
return (((i)&IN_CLASSC_NET) >> IN_CLASSC_NSHIFT);
}
+#ifndef __rtems__
/*
* Weak aliases for applications that use certain private entry points,
* and fail to include <arpa/inet.h>.
*/
#undef inet_netof
__weak_reference(__inet_netof, inet_netof);
+#endif /* __rtems__ */
/*! \file */