summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-08-22 20:43:07 +0000
committerpeter <peter@FreeBSD.org>2002-08-22 20:43:07 +0000
commit33ebfc9403ffcc14ef74c84141e6fde543a97b7a (patch)
treed2471ffebe39c68a39bc6f4004fbc06a13821045
parent7c1b707024a4335fa2db449b7c03bae6c3439126 (diff)
downloadFreeBSD-src-33ebfc9403ffcc14ef74c84141e6fde543a97b7a.zip
FreeBSD-src-33ebfc9403ffcc14ef74c84141e6fde543a97b7a.tar.gz
Instead of grabbing the userland a.out.h/link.h (or worse, from
/usr/include!), use sys/nlist_aout.h, machine/reloc.h, sys/imgact_aout.h and sys/link_aout.h.
-rw-r--r--sys/kern/link_aout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/link_aout.c b/sys/kern/link_aout.c
index 7a06080..44e4c28 100644
--- a/sys/kern/link_aout.c
+++ b/sys/kern/link_aout.c
@@ -29,6 +29,7 @@
#ifdef __i386__
#define FREEBSD_AOUT 1
+#define _AOUT_INCLUDE_ 1
#include <sys/param.h>
#include <sys/kernel.h>
@@ -37,9 +38,10 @@
#include <sys/proc.h>
#include <sys/namei.h>
#include <sys/fcntl.h>
+#include <sys/imgact_aout.h>
#include <sys/vnode.h>
#include <sys/linker.h>
-
+#include <machine/reloc.h>
#include "linker_if.h"
@@ -49,8 +51,8 @@
#include <machine/vmparam.h>
#endif
-#include <a.out.h>
-#include <link.h>
+#include <sys/nlist_aout.h>
+#include <sys/link_aout.h>
typedef struct aout_file {
struct linker_file lf; /* Common fields */
OpenPOWER on IntegriCloud