From 4f079c574816bcd4ec788443edf5eeaa55506e19 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 22 Jul 2009 01:44:38 -0400 Subject: 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 --- include/netinet/in.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3