diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2009-07-22 01:44:38 -0400 | 
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-08-19 12:28:14 -0700 | 
| commit | 0e3d6a139cd9ab6b2485edaf425b10750c28acfd (patch) | |
| tree | b302b67b96a8de315eb0b41d2a2cc48d789123fd /libc/inet/ntohl.c | |
| parent | 68da1f7c28f306bc938ec905a6b7b31cf4321d78 (diff) | |
| download | uClibc-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 'libc/inet/ntohl.c')
| -rw-r--r-- | libc/inet/ntohl.c | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/libc/inet/ntohl.c b/libc/inet/ntohl.c index dfadf80d8..1a5863286 100644 --- a/libc/inet/ntohl.c +++ b/libc/inet/ntohl.c @@ -9,11 +9,12 @@  #include <stdint.h>  #include <endian.h>  #include <byteswap.h> +#include <netinet/in.h> -uint32_t ntohl (uint32_t x); -uint16_t ntohs (uint16_t x); -uint32_t htonl (uint32_t x); -uint16_t htons (uint16_t x); +#undef ntohl +#undef ntohs +#undef htonl +#undef htons  #if __BYTE_ORDER == __BIG_ENDIAN  uint32_t ntohl (uint32_t x) @@ -58,3 +59,8 @@ uint16_t htons (uint16_t x)  #else  #error "You seem to have an unsupported byteorder"  #endif + +libc_hidden_def(ntohl) +libc_hidden_def(ntohs) +libc_hidden_def(htonl) +libc_hidden_def(htons) | 
