Quick fix to make libcam compile.. I don't know about the rest of world

yet.
This commit is contained in:
Peter Wemm 1999-06-26 14:25:03 +00:00
parent 7678b59a40
commit f19fd54afc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48247
2 changed files with 14 additions and 2 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.69 1999/05/07 07:03:45 phk Exp $
* $Id: buf.h,v 1.70 1999/06/26 02:45:37 mckusick Exp $
*/
#ifndef _SYS_BUF_H_
@ -232,6 +232,7 @@ struct buf {
#define NOOFFSET (-1LL) /* No buffer offset calculated yet */
#ifdef KERNEL
/*
* Buffer locking
*/
@ -310,6 +311,8 @@ BUF_KERNPROC(struct buf *bp)
#define BUF_REFCNT(bp) \
lockcount(&(bp)->b_lock)
#endif /* KERNEL */
struct buf_queue_head {
TAILQ_HEAD(buf_queue, buf) queue;
daddr_t last_pblkno;
@ -331,6 +334,7 @@ struct cluster_save {
struct buf **bs_children; /* List of associated buffers. */
};
#ifdef KERNEL
static __inline void bufq_init __P((struct buf_queue_head *head));
static __inline void bufq_insert_tail __P((struct buf_queue_head *head,
@ -382,6 +386,8 @@ bufq_first(struct buf_queue_head *head)
return (TAILQ_FIRST(&head->queue));
}
#endif /* KERNEL */
/*
* number of buffer hash entries

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.69 1999/05/07 07:03:45 phk Exp $
* $Id: buf.h,v 1.70 1999/06/26 02:45:37 mckusick Exp $
*/
#ifndef _SYS_BUF_H_
@ -232,6 +232,7 @@ struct buf {
#define NOOFFSET (-1LL) /* No buffer offset calculated yet */
#ifdef KERNEL
/*
* Buffer locking
*/
@ -310,6 +311,8 @@ BUF_KERNPROC(struct buf *bp)
#define BUF_REFCNT(bp) \
lockcount(&(bp)->b_lock)
#endif /* KERNEL */
struct buf_queue_head {
TAILQ_HEAD(buf_queue, buf) queue;
daddr_t last_pblkno;
@ -331,6 +334,7 @@ struct cluster_save {
struct buf **bs_children; /* List of associated buffers. */
};
#ifdef KERNEL
static __inline void bufq_init __P((struct buf_queue_head *head));
static __inline void bufq_insert_tail __P((struct buf_queue_head *head,
@ -382,6 +386,8 @@ bufq_first(struct buf_queue_head *head)
return (TAILQ_FIRST(&head->queue));
}
#endif /* KERNEL */
/*
* number of buffer hash entries