Include <sys/_lock.h>'s prerequisite <sys/queue.h> before including the

former, not after.

Don't hide this bug by including <sys/queue.h> in <sys/_lock.h>.
This commit is contained in:
Bruce Evans 2004-06-19 14:58:35 +00:00
parent 68ba7a1d57
commit 7a637a637e
4 changed files with 3 additions and 5 deletions

View File

@ -129,9 +129,9 @@
#ifndef LOCORE
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>
#include <sys/queue.h>
typedef u_int64_t pd_entry_t;
typedef u_int64_t pt_entry_t;

View File

@ -33,10 +33,10 @@
#define _NET_PFIL_H_
#include <sys/systm.h>
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>
#include <sys/condvar.h> /* XXX */
#include <sys/queue.h>
struct mbuf;
struct ifnet;

View File

@ -31,8 +31,6 @@
#ifndef _SYS__LOCK_H_
#define _SYS__LOCK_H_
#include <sys/queue.h>
struct lock_object {
struct lock_class *lo_class;
const char *lo_name; /* Individual lock name. */

View File

@ -43,9 +43,9 @@
#ifndef _KERNEL
#include <sys/filedesc.h>
#endif
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>
#include <sys/queue.h>
#include <sys/priority.h>
#include <sys/rtprio.h> /* XXX. */
#include <sys/runq.h>