diff options
author | hm <hm@FreeBSD.org> | 2001-01-15 14:54:43 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-01-15 14:54:43 +0000 |
commit | a4ef9041cb78f9b9d0641fd751c19b431496cd8e (patch) | |
tree | cc90bbc6f60312809de9f9bd2e361e6365eb7cf2 /sys/i4b/layer2/i4b_l2.c | |
parent | 6948230af2a0bf85cd447c1124448c8b3758cee4 (diff) | |
download | FreeBSD-src-a4ef9041cb78f9b9d0641fd751c19b431496cd8e.zip FreeBSD-src-a4ef9041cb78f9b9d0641fd751c19b431496cd8e.tar.gz |
Reenable support for FreeBSD 4.x and possibly the other supported BSD's
Diffstat (limited to 'sys/i4b/layer2/i4b_l2.c')
-rw-r--r-- | sys/i4b/layer2/i4b_l2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/i4b/layer2/i4b_l2.c b/sys/i4b/layer2/i4b_l2.c index b3f79a6..0383812 100644 --- a/sys/i4b/layer2/i4b_l2.c +++ b/sys/i4b/layer2/i4b_l2.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,11 +27,9 @@ * i4b_l2.c - ISDN layer 2 (Q.921) * ------------------------------- * - * $Id: i4b_l2.c,v 1.35 2000/08/24 11:48:57 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Thu Aug 24 13:40:35 2000] + * last edit-date: [Fri Jan 12 16:43:31 2001] * *---------------------------------------------------------------------------*/ @@ -277,7 +275,10 @@ i4b_mph_status_ind(int unit, int status, int parm) case STI_ATTACH: l2sc->unit = unit; l2sc->i_queue.ifq_maxlen = IQUEUE_MAXLEN; + +#if defined(__FreeBSD__) && __FreeBSD__ > 4 mtx_init(&l2sc->i_queue.ifq_mtx, "i4b_l2sc", MTX_DEF); +#endif l2sc->ua_frame = NULL; bzero(&l2sc->stat, sizeof(lapdstat_t)); i4b_l2_unit_init(unit); |