about summary refs log tree commit diff
path: root/sysdeps/generic/htonl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/htonl.c')
-rw-r--r--sysdeps/generic/htonl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/generic/htonl.c b/sysdeps/generic/htonl.c
index f1e077ae1a..d460d40f89 100644
--- a/sysdeps/generic/htonl.c
+++ b/sysdeps/generic/htonl.c
@@ -21,7 +21,7 @@
 #undef	htonl
 
 u_int32_t
-htonl (x)
+__htonl (x)
      u_int32_t x;
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
@@ -30,3 +30,6 @@ htonl (x)
 
   return x;
 }
+strong_alias (__htonl, __ntohl)
+weak_alias (__htonl, htonl)
+weak_alias (__ntohl, ntohl)