Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net make this compile on non 4.4BSD systems
details: https://anonhg.NetBSD.org/src/rev/2fde812f8025
branches: trunk
changeset: 483752:2fde812f8025
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 17 06:11:55 2000 +0000
description:
make this compile on non 4.4BSD systems
diffstat:
lib/libc/net/getnameinfo.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r c7658c790d4a -r 2fde812f8025 lib/libc/net/getnameinfo.c
--- a/lib/libc/net/getnameinfo.c Fri Mar 17 04:46:32 2000 +0000
+++ b/lib/libc/net/getnameinfo.c Fri Mar 17 06:11:55 2000 +0000
@@ -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 @@
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++)
Home |
Main Index |
Thread Index |
Old Index