From d24bee08a9bb25f2a99bc6d66d144687e8d87743 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 17 Mar 2000 06:11:55 +0000 Subject: [PATCH] make this compile on non 4.4BSD systems --- lib/libc/net/getnameinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c index 314325603f51..43b0d3b2d8a0 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++)