Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 18:14:07 -0800 (PST)
From:      "Valentin S. Chopov" <valsho@yahoo.com>
To:        Soren Schmidt <sos@freebsd.dk>
Cc:        current@FreeBSD.ORG
Subject:   ata-all.c : undefined atapi_attach() in ata_attach()
Message-ID:  <20000119021407.25113.qmail@web2102.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help

It seems that we need #if...#endif here, maybe
something like that:

... 
#if NATAPICD > 0 || NATAPIFD > 0 || NATAPIST > 0
    /* then the atapi devices */
    for (ctlr=0; ctlr<MAXATA; ctlr++) {
        if (!atadevices[ctlr]) continue;
        if (atadevices[ctlr]->devices &
ATA_ATAPI_MASTER)
            atapi_attach(atadevices[ctlr],
ATA_MASTER);
        if (atadevices[ctlr]->devices &
ATA_ATAPI_SLAVE)
            atapi_attach(atadevices[ctlr], ATA_SLAVE);
    }
#endif
...

Val

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000119021407.25113.qmail>