systm.h: Include cdefs.h first
Ever since r143063, machine/atomic.h requires cdefs.h. So, include it first. Weak support: style(9) tells us to include cdefs.h first. Argument against: since code that includes systm.h still compiles, compilation units that include systm.h must already include cdefs.h. So, an argument could be made that the cdefs.h include could just be removed entirely. That is maybe a bigger change and not one I am interested in bikeshedding. Universe compiles. Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
73e564150a
commit
7faf83af13
@ -38,10 +38,10 @@
|
||||
#ifndef _SYS_SYSTM_H_
|
||||
#define _SYS_SYSTM_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <machine/atomic.h>
|
||||
#include <machine/cpufunc.h>
|
||||
#include <sys/callout.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/stdint.h> /* for people using printf mainly */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user