From e3e65ac6a2cf8a617b90e4fd5162bd3d3ff22747 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 6 Jan 2006 22:48:48 +0000 Subject: Don't redefine SIZE_MAX --- sys/arch/amd64/include/limits.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/amd64/include') 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 -- cgit v1.2.3