sys/_types.h: Unbreak gcc build
We can't assume that <sys/cdefs.h> is in scope.
Fixes: 85ab981a8e ("sys/_types.h: define fallback __(u)intcap_t")
Reviewed by: olce, imp, emaste
Differential Revision: https://reviews.freebsd.org/D53980
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ typedef int __cpulevel_t; /* level parameter for cpuset. */
|
||||
typedef int __cpusetid_t; /* cpuset identifier. */
|
||||
typedef __int64_t __daddr_t; /* bwrite(3), FIOBMAP2, etc */
|
||||
|
||||
#if !__has_feature(capabilities)
|
||||
#if !defined(__has_feature) || !__has_feature(capabilities)
|
||||
/*
|
||||
* On non-CHERI systems, define __(u)intcap_t to __(u)intptr_t so that
|
||||
* hybrid-C code which needs to be explicitly aware of capabilities can
|
||||
|
||||
Reference in New Issue
Block a user