diff options
author | wollman <wollman@FreeBSD.org> | 1998-05-16 18:04:00 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1998-05-16 18:04:00 +0000 |
commit | 949dcf30df1d0553ddf55a3bbccfcce8f9f010dd (patch) | |
tree | f6aa39d899256298c765428ffa865b5d6c174e04 /usr.bin | |
parent | 23eca1d888110be853b1dcfff2009be85c6c9961 (diff) | |
download | FreeBSD-src-949dcf30df1d0553ddf55a3bbccfcce8f9f010dd.zip FreeBSD-src-949dcf30df1d0553ddf55a3bbccfcce8f9f010dd.tar.gz |
Fix rev. 1.7: get offsetof from the correct header file.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <netinet/in.h> #include <errno.h> +#include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <kvm.h> @@ -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) |