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;