Use modified NetBSD header files to make mopcopy work for a.out.

This commit is contained in:
Boris Gjenero
2020-10-22 19:03:16 -04:00
parent 32e5361f58
commit 0cc2781873
5 changed files with 27 additions and 19 deletions

View File

@@ -3,7 +3,8 @@ SRCS=mopcopy.c
OBJS=${SRCS:.c=.o}
LDLIBS+=../common/libcommon.a
CFLAGS+=-I../common -DNOAOUT
CFLAGS+=-I../common
# -DNOAOUT not needed as long as including of files from netbsd_h works
mopcopy: ${OBJS}

View File

@@ -59,9 +59,10 @@ __RCSID("$NetBSD: mopcopy.c,v 1.7 2019/12/27 09:41:52 msaitoh Exp $");
#if !defined(NOAOUT)
#if defined(__NetBSD__) || defined(__OpenBSD__)
#include <sys/exec_aout.h>
#endif
#if defined(__FreeBSD__)
#elif defined(__FreeBSD__)
#include <sys/imgact_aout.h>
#else
#include "../netbsd_h/exec_aout.h"
#endif
#endif /* !NOAOUT */
#if defined(__bsdi__)