diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2026-02-19 15:04:51 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2026-02-19 15:10:32 +0000 |
| commit | cb59eec9ebbf1ae3a24223431ed1d947674c8c6a (patch) | |
| tree | 63b3904b8d2abe6da9f472d5f366b8e89992f7a5 | |
| parent | 1e189279576497498cafad6f8c0a36a377b786a3 (diff) | |
stddef.h: add ptraddr_t
I'd missed that stddef.h is standalone and isn't a copy of sys/stddef.h
in my initial merge.
Effort: CHERI upstreaming
Reviewed by: kib
Sponsored by: Innovate UK
Fixes: dca634d1544b ("new type: ptraddr_t")
Differential Revision: https://reviews.freebsd.org/D55305
| -rw-r--r-- | include/stddef.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h index 3ba9a9946b01..978a34affc0a 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -36,6 +36,13 @@ #include <sys/_types.h> #include <sys/_visible.h> +#if __BSD_VISIBLE +#ifndef _PTRADDR_T_DECLARED +typedef __ptraddr_t ptraddr_t; +#define _PTRADDR_T_DECLARED +#endif +#endif + #ifndef _PTRDIFF_T_DECLARED typedef __ptrdiff_t ptrdiff_t; #define _PTRDIFF_T_DECLARED |
