mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 02:00:31 -04:00
Don't rely on sys/_types.h including sys/cdefs.h
These headers relied in __BEGIN_DECS/__END_DECLS being defined when sys/_types.h was included, but there's not a requirement that this be the case. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
This commit is contained in:
parent
8ac82ba19e
commit
b01e971fd3
4 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,8 @@
|
||||||
#ifndef _EXECINFO_H_
|
#ifndef _EXECINFO_H_
|
||||||
#define _EXECINFO_H_
|
#define _EXECINFO_H_
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
#ifndef _DLFCN_H_
|
#ifndef _DLFCN_H_
|
||||||
#define _DLFCN_H_
|
#define _DLFCN_H_
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
#ifndef _MATH_H_
|
#ifndef _MATH_H_
|
||||||
#define _MATH_H_
|
#define _MATH_H_
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
#include <machine/_limits.h>
|
#include <machine/_limits.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ int procdesc_falloc(struct thread *, struct file **, int *, int,
|
||||||
|
|
||||||
#else /* !_KERNEL */
|
#else /* !_KERNEL */
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
||||||
#ifndef _PID_T_DECLARED
|
#ifndef _PID_T_DECLARED
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue