]> granicus.if.org Git - file/commitdiff
Include sparcv9 to the list of machines where we use uint32_t for the
authorChristos Zoulas <christos@zoulas.com>
Tue, 7 Nov 2006 19:47:22 +0000 (19:47 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 7 Nov 2006 19:47:22 +0000 (19:47 +0000)
header. This should be __LP64__ or just eliminate the long part of the
struct? From Alex Deiter

src/readelf.c

index 1ef1f2e31ee084b8b5f0ef8148ff1e1af4b98324..cd473e7e5cd36d8f6b8ea2609d2e1fc2ef617d99 100644 (file)
@@ -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