From 820b11dc0ae315a33bbf0cd2cca91ca592e280a3 Mon Sep 17 00:00:00 2001 From: Joshua Oreman Date: Tue, 31 Mar 2009 07:20:11 +0100 Subject: [build] Use __SIZE_TYPE__ macro in definition of size_t This is required in order to build on Mac OS X. Modified-by: Michael Brown Signed-off-by: Michael Brown --- src/arch/i386/include/bits/stdint.h | 4 ++-- src/arch/x86_64/include/bits/stdint.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arch') diff --git a/src/arch/i386/include/bits/stdint.h b/src/arch/i386/include/bits/stdint.h index 6ccf09717..9eb72e9c4 100644 --- a/src/arch/i386/include/bits/stdint.h +++ b/src/arch/i386/include/bits/stdint.h @@ -1,8 +1,8 @@ #ifndef _BITS_STDINT_H #define _BITS_STDINT_H -typedef unsigned int size_t; -typedef signed int ssize_t; +typedef __SIZE_TYPE__ size_t; +typedef signed long ssize_t; typedef signed long off_t; typedef unsigned char uint8_t; diff --git a/src/arch/x86_64/include/bits/stdint.h b/src/arch/x86_64/include/bits/stdint.h index 23bae9c46..9eb72e9c4 100644 --- a/src/arch/x86_64/include/bits/stdint.h +++ b/src/arch/x86_64/include/bits/stdint.h @@ -1,7 +1,7 @@ #ifndef _BITS_STDINT_H #define _BITS_STDINT_H -typedef unsigned long size_t; +typedef __SIZE_TYPE__ size_t; typedef signed long ssize_t; typedef signed long off_t; -- cgit v1.2.3-55-g7522