Date: Thu, 6 Aug 98 09:06:19 +0200 From: David Wetzel <dave@turbocat.de> To: Harald Bjoroy <harald@bitcon.no> Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: i4b NetBSD 1.3.2 Message-ID: <199808060706.JAA00220@luigi.turbocat.de> References: <C0C3CAAA402BD111AA1E00A024745CC306E9D2@univac.bitcon.no>
next in thread | previous in thread | raw e-mail | index | archive | help
> From: Harald Bjoroy <harald@bitcon.no> > ../../../../i4b/driver/i4b_ipr.c > ../../../../i4b/driver/i4b_ipr.c: In function `i4biprioctl': > ../../../../i4b/driver/i4b_ipr.c:493: structure has no member named > `if_unit' > *** Error code 1 > Hellmuth got a patch a while ago from me: --- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 NeXTmail dave@turbocat.de (______) http://www.turbocat.de/ DEVELOPMENT * CONSULTING * ADMINISTRATION From: David Wetzel <dave> Date: Wed, 15 Jul 98 13:19:38 +0200 To: hm@kts.org Subject: NetBSD-Patches (Re: new isdn4bsd alpha available for download) cc: dave@alice.turbocat.de (David Wetzel), hm@hcs.de, freebsd-isdn@FreeBSD.ORG Organisation: Turbocat's Development http://www.turbocat.de/ > From: hm@kts.org (Hellmuth Michaelis) > > ../../../../i4b/driver/i4b_ipr.c: In function `i4biprioctl': > > ../../../../i4b/driver/i4b_ipr.c:493: structure has no member named > `if_unit' > *** Error code 1 > > > > Any ideas? > > Yes. This part of the code is FreeBSD specific, i forgot to add the NetBSD > specific part. Diffs are as usual welcome! dave@alice>diff -c driver/i4b_ipr.c.org driver/i4b_ipr.c *** driver/i4b_ipr.c.org Tue Jul 14 01:40:20 1998 --- driver/i4b_ipr.c Wed Jul 15 12:56:36 1998 *************** *** 461,468 **** --- 461,470 ---- { #ifdef __FreeBSD__ struct ipr_softc *sc = &ipr_softc[ifp->if_unit]; + int unit = ifp->if_unit; #else struct ipr_softc *sc = ifp->if_softc; + int unit = sc->sc_unit; #endif struct ifreq *ifr = (struct ifreq *)data; *************** *** 490,498 **** { /* disconnect ISDN line */ ! i4b_l4_drvrdisc(BDRV_IPR, ifp->if_unit); ! /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } if(ifr->ifr_flags & IFF_DEBUG) --- 492,500 ---- { /* disconnect ISDN line */ ! i4b_l4_drvrdisc(BDRV_IPR, unit); ! /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } if(ifr->ifr_flags & IFF_DEBUG) dave@alice>diff -c layer1/i4b_l1.h.org layer1/i4b_l1.h *** layer1/i4b_l1.h.org Wed Jul 15 13:08:17 1998 --- layer1/i4b_l1.h Wed Jul 15 13:08:31 1998 *************** *** 375,380 **** --- 375,383 ---- #else /* not FreeBSD */ + // Wed Jul 15 13:08:25 MET DST 1998 dave@turbocat.de + void isic_recover(struct isic_softc *sc); + extern int isicattach __P((int flags, struct isic_softc *sc)); extern int isicintr __P((void *)); extern int isicprobe __P((struct isic_attach_args *ia)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808060706.JAA00220>