From ceabac12a6bd47667e46adcc4e193046fcd82034 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Thu, 22 Oct 2020 01:06:28 -0400 Subject: [PATCH] Modify exec_elf.h for Linux, making mopcopy work for ELF. --- common/file.c | 2 +- mopcopy/mopcopy.c | 2 +- netbsd_h/exec_elf.h | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/file.c b/common/file.c index ac64663..452d313 100644 --- a/common/file.c +++ b/common/file.c @@ -54,7 +54,7 @@ __RCSID("$NetBSD: file.c,v 1.16 2016/06/08 01:11:49 christos Exp $"); # if defined(__NetBSD__) # include # else -# define NOELF +# include "../netbsd_h/exec_elf.h" # endif #endif /* NOELF */ diff --git a/mopcopy/mopcopy.c b/mopcopy/mopcopy.c index b2c2aa2..80e38c8 100644 --- a/mopcopy/mopcopy.c +++ b/mopcopy/mopcopy.c @@ -76,7 +76,7 @@ __RCSID("$NetBSD: mopcopy.c,v 1.7 2019/12/27 09:41:52 msaitoh Exp $"); # if defined(__NetBSD__) # include # else -# define NOELF +# include "../netbsd_h/exec_elf.h" # endif # if !defined(EM_VAX) # define EM_VAX 75 diff --git a/netbsd_h/exec_elf.h b/netbsd_h/exec_elf.h index 450557d..02351ca 100644 --- a/netbsd_h/exec_elf.h +++ b/netbsd_h/exec_elf.h @@ -47,11 +47,14 @@ #include #endif /* _KERNEL || _STANDALONE */ +/* Not needed for mopd */ +#if 0 #if HAVE_NBTOOL_CONFIG_H #include #else #include #endif +#endif typedef uint8_t Elf_Byte;