- (dtucker) [defines.h] Add SIZE_MAX for the benefit of platforms that don't

have it.
This commit is contained in:
Darren Tucker 2010-10-24 11:58:43 +11:00
parent d633fef471
commit 7bc236de21
2 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,8 @@
which don't have ECC support in libcrypto.
- (dtucker) [regress/cert-userkey.sh] Disable ECC-based tests on platforms
which don't have ECC support in libcrypto.
- (dtucker) [defines.h] Add SIZE_MAX for the benefit of platforms that don't
have it.
- (dtucker) OpenBSD CVS Sync
- sthen@cvs.openbsd.org 2010/10/23 22:06:12
[sftp.c]

View File

@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
/* $Id: defines.h,v 1.160 2010/04/09 08:13:27 dtucker Exp $ */
/* $Id: defines.h,v 1.161 2010/10/24 00:58:44 dtucker Exp $ */
/* Constants */
@ -250,6 +250,10 @@ typedef unsigned char u_char;
#define SIZE_T_MAX ULONG_MAX
#endif /* SIZE_T_MAX */
#ifndef SIZE_MAX
#define SIZE_MAX UINT_MAX
#endif
#ifndef HAVE_SIZE_T
typedef unsigned int size_t;
# define HAVE_SIZE_T