The branch main has been updated by brooks:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=cb59eec9ebbf1ae3a24223431ed1d947674c8c6a

commit cb59eec9ebbf1ae3a24223431ed1d947674c8c6a
Author:     Brooks Davis <[email protected]>
AuthorDate: 2026-02-19 15:04:51 +0000
Commit:     Brooks Davis <[email protected]>
CommitDate: 2026-02-19 15:10:32 +0000

    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
---
 include/stddef.h | 7 +++++++
 1 file changed, 7 insertions(+)

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

Reply via email to