From b1c3237adf6e7b44ac60457dd6a76e9aafafe854 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 20 Dec 1997 00:13:51 +0000 Subject: [PATCH] Fixed a sloppy common-style declaration. natm_pcb.c: Include which will be used when M_PCB is declared in the right place. --- sys/netnatm/natm.h | 2 +- sys/netnatm/natm_pcb.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h index 2edfd577ba90..45048d78516e 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 1b0067a78051..16e3a34ca894 100644 --- a/sys/netnatm/natm_pcb.c +++ b/sys/netnatm/natm_pcb.c @@ -41,6 +41,7 @@ #include #include #include +#include #include @@ -48,6 +49,8 @@ #include +struct npcblist natm_pcbs; + /* * npcb_alloc: allocate a npcb [in the free state] */