summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/main.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-06-09 14:02:08 +0000
committerdfr <dfr@FreeBSD.org>1998-06-09 14:02:08 +0000
commit9d3db765ca348dc273a136848d1d42795119d828 (patch)
treeb46c3f8bab6df5cdaff202789c82b429c5a15e13 /usr.sbin/config/main.c
parenta89f496cbf1aff49309b74d4f717d397d95dd30b (diff)
downloadFreeBSD-src-9d3db765ca348dc273a136848d1d42795119d828.zip
FreeBSD-src-9d3db765ca348dc273a136848d1d42795119d828.tar.gz
Add (mostly stub) alpha support. Incidentally, it doesn't build on stable
unless I manually construct y.tab.h. Is this normal?
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r--usr.sbin/config/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 4ff0ca5..7fd3bfc 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: main.c,v 1.23 1998/04/23 16:37:06 bde Exp $";
+ "$Id: main.c,v 1.24 1998/05/02 01:57:38 kato Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -179,6 +179,10 @@ main(argc, argv)
news_ioconf();
break;
+ case MACHINE_ALPHA:
+ alpha_ioconf();
+ break;
+
default:
printf("Specify machine type, e.g. ``machine vax''\n");
exit(1);
@@ -409,6 +413,9 @@ moveifchanged(const char *from_name, const char *to_name)
if (!changed) {
p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
+#ifndef MAP_FAILED
+#define MAP_FAILED ((caddr_t) -1)
+#endif
if (p == MAP_FAILED)
err(EX_OSERR, "mmap %s", from_name);
q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
OpenPOWER on IntegriCloud