Explorar o código

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

Eric Andersen %!s(int64=21) %!d(string=hai) anos
pai
achega
7f566954fc
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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