Build fdisk also on arc
This commit is contained in:
parent
72ff1dee2f
commit
07a6bcdde4
|
@ -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 @@ SUBDIR+= mbr_bootsel
|
|||
.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 @@ LDADD+= -lutil
|
|||
|
||||
MAN= fdisk.8
|
||||
|
||||
.if ${MACHINE} == "arc"
|
||||
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"'
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -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 @@ static char lbuf[LBUF];
|
|||
* Created.
|
||||
*/
|
||||
|
||||
char *disk = "/dev/rwd0d";
|
||||
#ifndef _PATH_DEFDISK
|
||||
#define _PATH_DEFDISK "/dev/rwd0d"
|
||||
#endif
|
||||
|
||||
char *disk = _PATH_DEFDISK;
|
||||
|
||||
struct disklabel disklabel; /* disk parameters */
|
||||
|
||||
|
|
Loading…
Reference in New Issue