From 443b34aa135f2ef595b3fdf33e0c7356a7bbea43 Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Thu, 21 Aug 2003 22:01:20 +0000
Subject: [PATCH] Enable this to compile on Solaris.  Solaris wants the same
 typedefs as Linux.  (Unknown if this change allows this to work or not.)

---
 lisp/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/elf.c b/lisp/elf.c
index 823acdacd..21aa64c79 100644
--- a/lisp/elf.c
+++ b/lisp/elf.c
@@ -25,7 +25,7 @@ static char elf_magic_string[] = {ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3};
 /* Note: FreeBSD has nice macros that let you use Elf_Ehdr
    etc. declarations; unfortunately Linux doesn't have this so you
    have to do Elf32_Ehdr etc.  Bad for moving to 64 bits.... */
-#ifdef __linux__
+#if defined(__linux__) || defined(sparc)
 typedef Elf32_Ehdr Elf_Ehdr;
 typedef Elf32_Shdr Elf_Shdr;
 #endif
-- 
GitLab