summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-04 10:39:05 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-04 10:39:05 +0000
commit7f566954fc897041daa3813b57c3843bc76e7f53 (patch)
tree166cb45049739e7f352953e4b673570f5e4dbb92
parent149583e745191a90f51bbf4bc3258709090e63ac (diff)
Patch from Stefan Allius to make ldd.c compile under Solaris
-rw-r--r--ldso/util/ldd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c
index 664f55a4f..f613815af 100644
--- a/ldso/util/ldd.c
+++ b/ldso/util/ldd.c
@@ -92,6 +92,12 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined (__sparc__)
+#define MATCH_MACHINE(x) ((x) == EM_SPARC || (x) == EM_SPARC32PLUS)
+#define ELFCLASSM ELFCLASS32
+#endif
+
+
#ifndef MATCH_MACHINE
#warning "You really should add a MATCH_MACHINE() macro for your architecture"
#endif