From 67fe54beb40fa67c27f26501719863786f584ee5 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Sat, 6 Oct 2001 12:25:56 +0000 Subject: [PATCH] On ARM ELF platforms, size_t and ptrdiff_t are u_long and long respectively. See . --- usr.bin/xlint/lint1/param.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/xlint/lint1/param.h b/usr.bin/xlint/lint1/param.h index ed3054a5c9a1..32e5609f6a70 100644 --- a/usr.bin/xlint/lint1/param.h +++ b/usr.bin/xlint/lint1/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.14 2001/08/17 05:49:43 eeh Exp $ */ +/* $NetBSD: param.h,v 1.15 2001/10/06 12:25:56 bjh21 Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -87,7 +87,10 @@ #elif defined(__vax__) #define PTRDIFF_IS_LONG 0 #define SIZEOF_IS_ULONG 0 -#elif defined(__arm__) +#elif defined(__arm__) && defined(__ELF__) +#define PTRDIFF_IS_LONG 1 +#define SIZEOF_IS_ULONG 1 +#elif defined(__arm__) && !defined(__ELF__) #define PTRDIFF_IS_LONG 0 #define SIZEOF_IS_ULONG 0 #elif defined(__powerpc__) || defined(__ppc__)