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:
parent
68ba7a1d57
commit
7a637a637e
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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. */
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user