Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Build fdisk also on arc
details: https://anonhg.NetBSD.org/src/rev/243bbae1730e
branches: trunk
changeset: 481462:243bbae1730e
user: soda <soda%NetBSD.org@localhost>
date: Mon Jan 31 15:54:48 2000 +0000
description:
Build fdisk also on arc
diffstat:
sbin/fdisk/Makefile | 8 ++++++--
sbin/fdisk/fdisk.c | 10 +++++++---
2 files changed, 13 insertions(+), 5 deletions(-)
diffs (59 lines):
diff -r e2606208cc41 -r 243bbae1730e sbin/fdisk/Makefile
--- a/sbin/fdisk/Makefile Mon Jan 31 15:53:46 2000 +0000
+++ b/sbin/fdisk/Makefile Mon Jan 31 15:54:48 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 1999/09/25 04:27:55 enami Exp $
+# $NetBSD: Makefile,v 1.17 2000/01/31 15:54:48 soda Exp $
SUBDIR= mbr
.if ${MACHINE} == "i386"
@@ -6,7 +6,7 @@
.endif
.if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || \
- ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips")
+ ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips" || ${MACHINE} == "arc")
PROG= fdisk
SRCS= fdisk.c
DPADD+= ${LIBUTIL}
@@ -15,5 +15,9 @@
MAN= fdisk.8
+.if ${MACHINE} == "arc"
+CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"'
+.endif
+
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
diff -r e2606208cc41 -r 243bbae1730e sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Mon Jan 31 15:53:46 2000 +0000
+++ b/sbin/fdisk/fdisk.c Mon Jan 31 15:54:48 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.38 1999/09/06 23:58:59 soren Exp $ */
+/* $NetBSD: fdisk.c,v 1.39 2000/01/31 15:54:48 soda Exp $ */
/*
* Mach Operating System
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.38 1999/09/06 23:58:59 soren Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.39 2000/01/31 15:54:48 soda Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -65,7 +65,11 @@
* Created.
*/
-char *disk = "/dev/rwd0d";
+#ifndef _PATH_DEFDISK
+#define _PATH_DEFDISK "/dev/rwd0d"
+#endif
+
+char *disk = _PATH_DEFDISK;
struct disklabel disklabel; /* disk parameters */
Home |
Main Index |
Thread Index |
Old Index