Make `options NETATALK' compile after the -fno-common changes.

Tested by:	Emiel Kollof <coolvibe@hackerheaven.org>
This commit is contained in:
iedowse 2002-01-16 11:26:50 +00:00
parent 27f1b0eab5
commit 4ce948eb0c
3 changed files with 6 additions and 2 deletions

View File

@ -27,8 +27,6 @@ static volatile int ddp_firewall = 0;
static struct ddpstat ddpstat;
static struct route forwro;
const int atintrq1_present = 1, atintrq2_present = 1;
static void ddp_input(struct mbuf *, struct ifnet *, struct elaphdr *, int);
/*

View File

@ -14,6 +14,7 @@
#include <sys/protosw.h>
#include <net/if.h>
#include <net/route.h>
#include <net/intrq.h>
#include <netatalk/at.h>
#include <netatalk/at_var.h>
@ -547,6 +548,8 @@ ddp_init(void )
{
atintrq1.ifq_maxlen = IFQ_MAXLEN;
atintrq2.ifq_maxlen = IFQ_MAXLEN;
atintrq1_present = 1;
atintrq2_present = 1;
mtx_init(&atintrq1.ifq_mtx, "at1_inq", MTX_DEF);
mtx_init(&atintrq2.ifq_mtx, "at2_inq", MTX_DEF);
}

View File

@ -14,6 +14,7 @@
#include <sys/protosw.h>
#include <net/if.h>
#include <net/route.h>
#include <net/intrq.h>
#include <netatalk/at.h>
#include <netatalk/at_var.h>
@ -547,6 +548,8 @@ ddp_init(void )
{
atintrq1.ifq_maxlen = IFQ_MAXLEN;
atintrq2.ifq_maxlen = IFQ_MAXLEN;
atintrq1_present = 1;
atintrq2_present = 1;
mtx_init(&atintrq1.ifq_mtx, "at1_inq", MTX_DEF);
mtx_init(&atintrq2.ifq_mtx, "at2_inq", MTX_DEF);
}