summaryrefslogtreecommitdiffstats
path: root/include/netinet
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-22 01:44:38 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:28:14 -0700
commit0e3d6a139cd9ab6b2485edaf425b10750c28acfd (patch)
treeb302b67b96a8de315eb0b41d2a2cc48d789123fd /include/netinet
parent68da1f7c28f306bc938ec905a6b7b31cf4321d78 (diff)
downloaduClibc-alpine-0e3d6a139cd9ab6b2485edaf425b10750c28acfd.tar.bz2
uClibc-alpine-0e3d6a139cd9ab6b2485edaf425b10750c28acfd.tar.xz
add hidden aliases for ntoh/hton functions
Sometimes references for these functions show up (like when debugging is enabled), so add hidden aliases for them if needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netinet/in.h b/include/netinet/in.h
index 942373fcd..851aace59 100644
--- a/include/netinet/in.h
+++ b/include/netinet/in.h
@@ -356,12 +356,16 @@ struct group_filter
may have different representations but the values are always the same. */
extern uint32_t ntohl (uint32_t __netlong) __THROW __attribute__ ((__const__));
+libc_hidden_proto(ntohl)
extern uint16_t ntohs (uint16_t __netshort)
__THROW __attribute__ ((__const__));
+libc_hidden_proto(ntohs)
extern uint32_t htonl (uint32_t __hostlong)
__THROW __attribute__ ((__const__));
+libc_hidden_proto(htonl)
extern uint16_t htons (uint16_t __hostshort)
__THROW __attribute__ ((__const__));
+libc_hidden_proto(htons)
#include <endian.h>