From 949dcf30df1d0553ddf55a3bbccfcce8f9f010dd Mon Sep 17 00:00:00 2001 From: wollman Date: Sat, 16 May 1998 18:04:00 +0000 Subject: Fix rev. 1.7: get offsetof from the correct header file. --- usr.bin/netstat/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/netstat/unix.c') diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c index 96d6fd7..136a1b6 100644 --- a/usr.bin/netstat/unix.c +++ b/usr.bin/netstat/unix.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)unix.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: unix.c,v 1.6 1998/05/15 20:19:21 wollman Exp $"; + "$Id: unix.c,v 1.7 1998/05/16 08:31:49 ache Exp $"; #endif /* not lint */ /* @@ -55,6 +55,7 @@ static const char rcsid[] = #include #include +#include #include #include #include @@ -131,7 +132,6 @@ unixdomainpr(xunp, so) struct unpcb *unp; struct sockaddr_un *sa; static int first = 1; -#define offsetof(s, e) ((char *)&((s *)0)->e - (char *)((s *)0)) unp = &xunp->xu_unp; if (unp->unp_addr) -- cgit v1.1