artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254dd10
)
add SIZE_MAX. ok kettenis@
author
matthieu
<matthieu@openbsd.org>
Fri, 25 Jun 2021 19:22:51 +0000
(19:22 +0000)
committer
matthieu
<matthieu@openbsd.org>
Fri, 25 Jun 2021 19:22:51 +0000
(19:22 +0000)
sys/arch/riscv64/include/limits.h
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/include/limits.h
b/sys/arch/riscv64/include/limits.h
index
ed1b0d8
..
e6e61d9
100644
(file)
--- 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