Browse Source

Patch from Stefan Allius to make ldd.c compile under Solaris

Eric Andersen 21 years ago
parent
commit
7f566954fc
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ldso/util/ldd.c

+ 6 - 0
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