summaryrefslogtreecommitdiff
path: root/usr/src/head/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/head/stdint.h')
-rw-r--r--usr/src/head/stdint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/head/stdint.h b/usr/src/head/stdint.h
index 135d0bc2fb..cb1bc88510 100644
--- a/usr/src/head/stdint.h
+++ b/usr/src/head/stdint.h
@@ -35,4 +35,11 @@
#include <sys/stdint.h>
+#if __EXT1_VISIBLE
+/* ISO/IEC 9899:2011 K.3.4.4 */
+#ifndef RSIZE_MAX
+#define RSIZE_MAX (SIZE_MAX >> 1)
+#endif
+#endif /* __EXT1_VISIBLE */
+
#endif /* _STDINT_H */