summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2000-03-17 06:11:55 +0000
committerchristos <christos@NetBSD.org>2000-03-17 06:11:55 +0000
commitd24bee08a9bb25f2a99bc6d66d144687e8d87743 (patch)
treea7458cba28024c9ceed7a13daeb8587fda1d71d4 /lib/libc
parent0a23aef85ee4f440cecd82672bc2370e92cc4c9d (diff)
make this compile on non 4.4BSD systems
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getnameinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c
index 314325603f5..43b0d3b2d8a 100644
--- a/lib/libc/net/getnameinfo.c
+++ b/lib/libc/net/getnameinfo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getnameinfo.c,v 1.12 2000/02/17 17:06:17 itojun Exp $ */
+/* $NetBSD: getnameinfo.c,v 1.13 2000/03/17 06:11:55 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -112,8 +112,10 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
if (sa == NULL)
return ENI_NOSOCKET;
+#ifdef BSD4_4
if (sa->sa_len != salen)
return ENI_SALEN;
+#endif
family = sa->sa_family;
for (i = 0; afdl[i].a_af; i++)