From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH 1/5] xen: add ssize_t Date: Thu, 28 Jun 2012 17:26:22 +0100 Message-ID: <1340900786-21802-2-git-send-email-jean.guyader@citrix.com> References: <1340900786-21802-1-git-send-email-jean.guyader@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------true" Return-path: In-Reply-To: <1340900786-21802-1-git-send-email-jean.guyader@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Jean Guyader List-Id: xen-devel@lists.xenproject.org --------------true Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable Signed-off-by: Jean Guyader --- xen/include/asm-arm/types.h | 1 + xen/include/asm-x86/types.h | 6 ++++++ 2 files changed, 7 insertions(+) --------------true Content-Type: text/x-patch; name="0001-xen-add-ssize_t.patch" Content-Disposition: attachment; filename="0001-xen-add-ssize_t.patch" Content-Transfer-Encoding: quoted-printable diff --git a/xen/include/asm-arm/types.h b/xen/include/asm-arm/types.h index 48864f9..d2c5612 100644 --- a/xen/include/asm-arm/types.h +++ b/xen/include/asm-arm/types.h @@ -35,6 +35,7 @@ typedef u64 paddr_t; #define PRIpaddr "016llx" =20 typedef unsigned long size_t; +typedef long ssize_t; =20 typedef char bool_t; #define test_and_set_bool(b) xchg(&(b), 1) diff --git a/xen/include/asm-x86/types.h b/xen/include/asm-x86/types.h index 1c4c5d5..bb7ffc2 100644 --- a/xen/include/asm-x86/types.h +++ b/xen/include/asm-x86/types.h @@ -59,6 +59,12 @@ typedef char bool_t; #define test_and_set_bool(b) xchg(&(b), 1) #define test_and_clear_bool(b) xchg(&(b), 0) =20 +#if defined(__i386__) +typedef int ssize_t; +#else /* __x86_64 */ +typedef long ssize_t; +#endif + #endif /* __ASSEMBLY__ */ =20 #endif /* __X86_TYPES_H__ */ --------------true Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------true--