summaryrefslogtreecommitdiff
path: root/sysdeps/generic/htons.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/htons.c')
-rw-r--r--sysdeps/generic/htons.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/generic/htons.c b/sysdeps/generic/htons.c
index 3aaf28551c..a0a0e81adf 100644
--- a/sysdeps/generic/htons.c
+++ b/sysdeps/generic/htons.c
@@ -21,7 +21,7 @@
#undef htons
u_int16_t
-htons (x)
+__htons (x)
u_int16_t x;
{
#if BYTE_ORDER == LITTLE_ENDIAN
@@ -30,3 +30,6 @@ htons (x)
return x;
}
+strong_alias (__htons, __ntohs)
+weak_alias (__htons, htons)
+weak_alias (__ntohs, ntohs)