diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-06-25 19:22:52 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-06-25 19:22:52 +0000 |
commit | 1a0da8de4e6bf937e01ae74387cc0af7e4effaee (patch) | |
tree | 80d55aa10452ada26b187dcc8e30384842ce0c9b | |
parent | 27ef496d8f54d0d5dd63947ebcdd90abd05c6ae1 (diff) |
add SIZE_MAX. ok kettenis@
-rw-r--r-- | sys/arch/riscv64/include/limits.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/riscv64/include/limits.h b/sys/arch/riscv64/include/limits.h index ed1b0d8e684..e6e61d9cbdc 100644 --- a/sys/arch/riscv64/include/limits.h +++ b/sys/arch/riscv64/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */ +/* $OpenBSD: limits.h,v 1.2 2021/06/25 19:22:51 matthieu Exp $ */ /* $NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 Exp $ */ /* @@ -38,6 +38,9 @@ #include <sys/cdefs.h> #if __POSIX_VISIBLE || __XPG_VISIBLE +#ifndef SIZE_MAX +#define SIZE_MAX ULONG_MAX /* max value for a size_t */ +#endif #define SSIZE_MAX LONG_MAX /* max value for a ssize_t */ #endif |