From: Christos Zoulas Date: Tue, 7 Nov 2006 19:47:22 +0000 (+0000) Subject: Include sparcv9 to the list of machines where we use uint32_t for the X-Git-Tag: FILE5_05~706 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5712518dc48a9b465d3c86841095e1c908cd03a7;p=file Include sparcv9 to the list of machines where we use uint32_t for the header. This should be __LP64__ or just eliminate the long part of the struct? From Alex Deiter --- diff --git a/src/readelf.c b/src/readelf.c index 1ef1f2e3..cd473e7e 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -37,7 +37,7 @@ #include "readelf.h" #ifndef lint -FILE_RCSID("@(#)$Id: readelf.c,v 1.59 2006/10/31 19:37:17 christos Exp $") +FILE_RCSID("@(#)$Id: readelf.c,v 1.60 2006/11/07 19:47:22 christos Exp $") #endif #ifdef ELFCORE @@ -898,7 +898,7 @@ file_tryelf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) { union { -#if defined(__s390x__) || defined(__powerpc64__) +#if defined(__s390x__) || defined(__powerpc64__) || defined(__sparcv9) int32_t l; char c[sizeof (int32_t)]; #else