diff --git a/src/ChangeLog b/src/ChangeLog
index c6a4f660..a077cd68 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+	* connect.c (bind_local): Rename sa_len to addrlen because IRIX
+	headers define sa_len as a macro.
+
 2003-11-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
 	* html-parse.c (convert_and_copy): Remove embedded newlines when
diff --git a/src/connect.c b/src/connect.c
index 83c5014b..e2bacf40 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -447,8 +447,8 @@ bind_local (const ip_address *bind_address, int *port)
   /* If *PORT is 0, find out which port we've bound to.  */
   if (*port == 0)
     {
-      socklen_t sa_len = sockaddr_size (sa);
-      if (getsockname (sock, sa, &sa_len) < 0)
+      socklen_t addrlen = sockaddr_size (sa);
+      if (getsockname (sock, sa, &addrlen) < 0)
 	{
 	  /* If we can't find out the socket's local address ("name"),
 	     something is seriously wrong with the socket, and it's