summaryrefslogtreecommitdiff
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
parent3d968d723dbeb3379884001adc825a01b6513dce (diff)
Don't redefine SIZE_MAX
-rw-r--r--sys/arch/alpha/include/limits.h4
-rw-r--r--sys/arch/amd64/include/limits.h4
-rw-r--r--sys/arch/arm/include/limits.h4
-rw-r--r--sys/arch/hppa/include/limits.h4
-rw-r--r--sys/arch/hppa64/include/limits.h4
-rw-r--r--sys/arch/i386/include/limits.h4
-rw-r--r--sys/arch/m68k/include/limits.h4
-rw-r--r--sys/arch/m88k/include/limits.h4
-rw-r--r--sys/arch/mips64/include/limits.h4
-rw-r--r--sys/arch/powerpc/include/limits.h4
-rw-r--r--sys/arch/sparc/include/limits.h4
-rw-r--r--sys/arch/sparc64/include/limits.h4
-rw-r--r--sys/arch/vax/include/limits.h4
13 files changed, 39 insertions, 13 deletions
diff --git a/sys/arch/alpha/include/limits.h b/sys/arch/alpha/include/limits.h
index 710a0e0a087..b625a640454 100644
--- a/sys/arch/alpha/include/limits.h
+++ b/sys/arch/alpha/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.11 2005/12/14 21:46:29 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.12 2006/01/06 22:48:46 millert Exp $ */
/* $NetBSD: limits.h,v 1.2 1996/04/12 01:38:25 cgd Exp $ */
/*
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
#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
diff --git a/sys/arch/amd64/include/limits.h b/sys/arch/amd64/include/limits.h
index 3fe15889606..0f45207eb37 100644
--- a/sys/arch/amd64/include/limits.h
+++ b/sys/arch/amd64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.3 2005/12/14 21:46:30 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.4 2006/01/06 22:48:46 millert Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -39,7 +39,9 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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
diff --git a/sys/arch/arm/include/limits.h b/sys/arch/arm/include/limits.h
index 3479577b598..3afc95fcf81 100644
--- a/sys/arch/arm/include/limits.h
+++ b/sys/arch/arm/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:30 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.3 2006/01/06 22:48:46 millert Exp $ */
/* $NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 Exp $ */
/*
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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
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
diff --git a/sys/arch/hppa64/include/limits.h b/sys/arch/hppa64/include/limits.h
index b9e88daa4ae..feef45a69e9 100644
--- a/sys/arch/hppa64/include/limits.h
+++ b/sys/arch/hppa64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:30 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.3 2006/01/06 22:48:46 millert Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,7 +39,9 @@
#define MB_LEN_MAX 32 /* 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
diff --git a/sys/arch/i386/include/limits.h b/sys/arch/i386/include/limits.h
index 9915dfd884c..ad8e016558d 100644
--- a/sys/arch/i386/include/limits.h
+++ b/sys/arch/i386/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:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.11 1995/12/21 01:08:59 mycroft Exp $ */
/*
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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
diff --git a/sys/arch/m68k/include/limits.h b/sys/arch/m68k/include/limits.h
index 21c555ff2b6..1717ed40ce1 100644
--- a/sys/arch/m68k/include/limits.h
+++ b/sys/arch/m68k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.8 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.9 2006/01/06 22:48:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.9 1994/10/26 07:50:48 cgd Exp $ */
/*
@@ -37,7 +37,9 @@
#include <sys/cdefs.h>
#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
diff --git a/sys/arch/m88k/include/limits.h b/sys/arch/m88k/include/limits.h
index d2eaa31dfaf..e071b720c15 100644
--- a/sys/arch/m88k/include/limits.h
+++ b/sys/arch/m88k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.3 2006/01/06 22:48:47 millert Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,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
diff --git a/sys/arch/mips64/include/limits.h b/sys/arch/mips64/include/limits.h
index c240c41d71b..bff9dfdb507 100644
--- a/sys/arch/mips64/include/limits.h
+++ b/sys/arch/mips64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.3 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.4 2006/01/06 22:48:47 millert Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -68,7 +68,9 @@
#define GID_MAX UINT_MAX /* max value for a gid_t */
#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
diff --git a/sys/arch/powerpc/include/limits.h b/sys/arch/powerpc/include/limits.h
index dc7bea2f679..f19af01fa59 100644
--- a/sys/arch/powerpc/include/limits.h
+++ b/sys/arch/powerpc/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.14 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.15 2006/01/06 22:48:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */
/*-
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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
diff --git a/sys/arch/sparc/include/limits.h b/sys/arch/sparc/include/limits.h
index 4ab9296fb2b..d71b3a74ea8 100644
--- a/sys/arch/sparc/include/limits.h
+++ b/sys/arch/sparc/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.10 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.11 2006/01/06 22:48:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */
/*
@@ -37,7 +37,9 @@
#include <sys/cdefs.h>
#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
diff --git a/sys/arch/sparc64/include/limits.h b/sys/arch/sparc64/include/limits.h
index 7020923f411..2fb2418df35 100644
--- a/sys/arch/sparc64/include/limits.h
+++ b/sys/arch/sparc64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.8 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.9 2006/01/06 22:48:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.8 2000/08/08 22:31:14 tshiozak Exp $ */
/*
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 32 /* no multibyte characters */
#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
diff --git a/sys/arch/vax/include/limits.h b/sys/arch/vax/include/limits.h
index 3c6342d283c..e6d9a94aff4 100644
--- a/sys/arch/vax/include/limits.h
+++ b/sys/arch/vax/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.12 2005/12/14 21:46:31 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.13 2006/01/06 22:48:47 millert Exp $ */
/* $NetBSD: limits.h,v 1.9 2000/03/07 19:33:01 kleink Exp $ */
/*
@@ -40,7 +40,9 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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