summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2009-08-20 17:40:26 +0000
committerhe <he@NetBSD.org>2009-08-20 17:40:26 +0000
commitd1c69ed983cf7e5faefedc58fa3a3a5fce2cc8c7 (patch)
tree8240c8530c8d0e893a376d7a7a3f5b90a1eb6b9d /usr.bin
parentcff555419110263654b37ec4508061f64aa8ffb4 (diff)
Move the include of <a.out.h> and <sys/exec_aout.h> until after
we have determined that the current machine actually supports a.out.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/crunch/crunchide/exec_aout.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/crunch/crunchide/exec_aout.c b/usr.bin/crunch/crunchide/exec_aout.c
index cc880f27de8..867ed0c78e2 100644
--- a/usr.bin/crunch/crunchide/exec_aout.c
+++ b/usr.bin/crunch/crunchide/exec_aout.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_aout.c,v 1.11 2009/08/16 18:15:28 martin Exp $ */
+/* $NetBSD: exec_aout.c,v 1.12 2009/08/20 17:40:26 he Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: exec_aout.c,v 1.11 2009/08/16 18:15:28 martin Exp $");
+__RCSID("$NetBSD: exec_aout.c,v 1.12 2009/08/20 17:40:26 he Exp $");
#endif
#include <unistd.h>
@@ -37,15 +37,16 @@ __RCSID("$NetBSD: exec_aout.c,v 1.11 2009/08/16 18:15:28 martin Exp $");
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <a.out.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/exec_aout.h>
#include "extern.h"
#if defined(NLIST_AOUT)
+#include <a.out.h>
+#include <sys/exec_aout.h>
+
int nsyms, ntextrel, ndatarel;
struct exec *hdrp;
char *aoutdata, *strbase;