diff options
author | bde <bde@FreeBSD.org> | 1997-12-20 00:13:51 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-20 00:13:51 +0000 |
commit | 598fd6fc0bcb8533583983a31645be25a6b9072d (patch) | |
tree | 29f2bfb55e92a7d7c79817d21491a18550831efe /sys/netnatm | |
parent | 944457576208dfd936d259422187a2d708f43a2f (diff) | |
download | FreeBSD-src-598fd6fc0bcb8533583983a31645be25a6b9072d.zip FreeBSD-src-598fd6fc0bcb8533583983a31645be25a6b9072d.tar.gz |
Fixed a sloppy common-style declaration.
natm_pcb.c:
Include <sys/socketvar.h> which will be used when M_PCB is declared
in the right place.
Diffstat (limited to 'sys/netnatm')
-rw-r--r-- | sys/netnatm/natm.h | 2 | ||||
-rw-r--r-- | sys/netnatm/natm_pcb.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h index 2edfd57..45048d7 100644 --- a/sys/netnatm/natm.h +++ b/sys/netnatm/natm.h @@ -113,7 +113,7 @@ LIST_HEAD(npcblist, natmpcb); /* global data structures */ -struct npcblist natm_pcbs; /* global list of pcbs */ +extern struct npcblist natm_pcbs; /* global list of pcbs */ extern struct ifqueue natmintrq; /* natm packet input queue */ #define NATM_STAT #ifdef NATM_STAT diff --git a/sys/netnatm/natm_pcb.c b/sys/netnatm/natm_pcb.c index 1b0067a..16e3a34 100644 --- a/sys/netnatm/natm_pcb.c +++ b/sys/netnatm/natm_pcb.c @@ -41,6 +41,7 @@ #include <sys/systm.h> #include <sys/malloc.h> #include <sys/socket.h> +#include <sys/socketvar.h> #include <net/if.h> @@ -48,6 +49,8 @@ #include <netnatm/natm.h> +struct npcblist natm_pcbs; + /* * npcb_alloc: allocate a npcb [in the free state] */ |