Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/mopd/mopcopy Use NOAOUT so that this builds without...



details:   https://anonhg.NetBSD.org/src/rev/bfdca5bf0c09
branches:  trunk
changeset: 746832:bfdca5bf0c09
user:      he <he%NetBSD.org@localhost>
date:      Thu Aug 20 22:26:19 2009 +0000

description:
Use NOAOUT so that this builds without a.out support, and enable
that define if we're building for mips.

diffstat:

 usr.sbin/mopd/mopcopy/Makefile  |  7 ++++++-
 usr.sbin/mopd/mopcopy/mopcopy.c |  8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 015979f02dea -r bfdca5bf0c09 usr.sbin/mopd/mopcopy/Makefile
--- a/usr.sbin/mopd/mopcopy/Makefile    Thu Aug 20 22:07:49 2009 +0000
+++ b/usr.sbin/mopd/mopcopy/Makefile    Thu Aug 20 22:26:19 2009 +0000
@@ -1,5 +1,10 @@
-#      $NetBSD: Makefile,v 1.1 2002/06/06 23:01:00 thorpej Exp $
+#      $NetBSD: Makefile,v 1.2 2009/08/20 22:26:19 he Exp $
 
 PROG=  mopcopy
 
+.include <bsd.own.mk>
+.if ${MACHINE_CPU} == "mips"
+CFLAGS+= -DNOAOUT
+.endif
+
 .include <bsd.prog.mk>
diff -r 015979f02dea -r bfdca5bf0c09 usr.sbin/mopd/mopcopy/mopcopy.c
--- a/usr.sbin/mopd/mopcopy/mopcopy.c   Thu Aug 20 22:07:49 2009 +0000
+++ b/usr.sbin/mopd/mopcopy/mopcopy.c   Thu Aug 20 22:26:19 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mopcopy.c,v 1.3 2002/11/05 05:06:05 thorpej Exp $      */
+/*     $NetBSD: mopcopy.c,v 1.4 2009/08/20 22:26:19 he Exp $   */
 
 /* mopcopy - Convert a Unix format kernel into something that
  * can be transfered via MOP.
@@ -49,19 +49,21 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mopcopy.c,v 1.3 2002/11/05 05:06:05 thorpej Exp $");
+__RCSID("$NetBSD: mopcopy.c,v 1.4 2009/08/20 22:26:19 he Exp $");
 #endif
 
 #include "os.h"
 #include "common.h"
 #include "mopdef.h"
 #include "file.h"
+#if !defined(NOAOUT)
 #if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <sys/exec_aout.h>
 #endif
 #if defined(__FreeBSD__)
 #include <sys/imgact_aout.h>
 #endif
+#endif /* !NOAOUT */
 #if defined(__bsdi__)
 #include <a.out.h>
 #define NOAOUT
@@ -82,7 +84,9 @@
 #endif /* NOELF */
 
 u_char header[512];            /* The VAX header we generate is 1 block. */
+#if !defined(NOAOUT)
 struct exec ex, ex_swap;
+#endif
 
 int
 main (int argc, char **argv)



Home | Main Index | Thread Index | Old Index