summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-01-06 22:48:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-01-06 22:48:48 +0000
commite3e65ac6a2cf8a617b90e4fd5162bd3d3ff22747 (patch)
treeea3065cbc70aded21c2b8e57a497a44734dd2eaf /sys/arch/hppa/include
parent3d968d723dbeb3379884001adc825a01b6513dce (diff)
Don't redefine SIZE_MAX
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r--sys/arch/hppa/include/limits.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/limits.h b/sys/arch/hppa/include/limits.h
index eda7db85dd6..6e4eb39566d 100644
--- a/sys/arch/hppa/include/limits.h
+++ b/sys/arch/hppa/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.10 2005/12/14 21:46:30 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.11 2006/01/06 22:48:46 millert Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,7 +39,9 @@
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
#if __POSIX_VISIBLE || __XPG_VISIBLE
+#ifndef SIZE_MAX
#define SIZE_MAX UINT_MAX /* max value for a size_t */
+#endif
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
#endif