summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/reent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index 60eb208a7..ed3d9aa01 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -800,6 +800,11 @@ struct _reent
#endif /* !_REENT_SMALL */
+/* This value is used in stdlib/misc.c. reent/reent.c has to know it
+ as well to make sure the freelist is correctly free'd. Therefore
+ we define it here, rather than in stdlib/misc.c, as before. */
+#define _Kmax (sizeof (size_t) << 3)
+
/*
* All references to struct _reent are via this pointer.
* Internally, newlib routines that need to reference it should use _REENT.