aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/stddef.h')
-rw-r--r--sys/sys/stddef.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/stddef.h b/sys/sys/stddef.h
index 73636f5a2370..90186eed7624 100644
--- a/sys/sys/stddef.h
+++ b/sys/sys/stddef.h
@@ -32,6 +32,14 @@
#include <sys/cdefs.h>
#include <sys/_null.h>
#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;