aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-05-18 19:22:50 +0000
committerRoland McGrath <roland@gnu.org>2005-05-18 19:22:50 +0000
commitbeb326422244db44a39402d37a9a244a54500e4f (patch)
tree3b3d6adb47378affcb38aabe4ac6847f6b585d5b
parent99878f84547e016dd26b413bb269208c1ef1ad07 (diff)
downloadglibc-beb326422244db44a39402d37a9a244a54500e4f.tar
glibc-beb326422244db44a39402d37a9a244a54500e4f.tar.gz
glibc-beb326422244db44a39402d37a9a244a54500e4f.tar.bz2
glibc-beb326422244db44a39402d37a9a244a54500e4f.zip
2005-05-17 Neal H. Walfield <neal@gnu.org>
* sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN] instead of [SALEN]. (gaih_inet): Likewise.
-rw-r--r--sysdeps/posix/getaddrinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 5ec7262157..d97b95b5e0 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -196,10 +196,10 @@ gaih_local (const char *name, const struct gaih_service *service,
(*pai)->ai_addrlen = sizeof (struct sockaddr_un);
(*pai)->ai_addr = (void *) (*pai) + sizeof (struct addrinfo);
-#if SALEN
+#ifdef _HAVE_SA_LEN
((struct sockaddr_un *) (*pai)->ai_addr)->sun_len =
sizeof (struct sockaddr_un);
-#endif /* SALEN */
+#endif /* _HAVE_SA_LEN */
((struct sockaddr_un *)(*pai)->ai_addr)->sun_family = AF_LOCAL;
memset(((struct sockaddr_un *)(*pai)->ai_addr)->sun_path, 0, UNIX_PATH_MAX);
@@ -1076,9 +1076,9 @@ gaih_inet (const char *name, const struct gaih_service *service,
ai->ai_canonname = (char *) canon;
canon = NULL;
-#if SALEN
+#ifdef _HAVE_SA_LEN
ai->ai_addr->sa_len = socklen;
-#endif /* SALEN */
+#endif /* _HAVE_SA_LEN */
ai->ai_addr->sa_family = family;
if (family == AF_INET6)