Don't define errno expliticly, use libsa/errno.c in first stage and
${LIBSA} in the second stage.
This commit is contained in:
parent
9c8f206e65
commit
4c9bbd20fb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: boot.c,v 1.3 1999/03/26 05:23:58 simonb Exp $ */
|
||||
/* $NetBSD: boot.c,v 1.4 1999/03/31 07:23:27 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -88,7 +88,6 @@
|
|||
#include "byteswap.h"
|
||||
#include "loadfile.h"
|
||||
|
||||
int errno;
|
||||
extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[];
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 1999/03/31 04:30:11 simonb Exp $
|
||||
# $NetBSD: Makefile,v 1.11 1999/03/31 07:23:28 simonb Exp $
|
||||
# @(#)Makefile 8.3 (Berkeley) 2/16/94
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
@ -12,7 +12,7 @@ SRCS= start.S alloc.c bootxx.c clear_cache.S memcpy.c memset.c printf.S \
|
|||
strcmp.S strcpy.S strlen.S
|
||||
|
||||
# from sys/lib/libsa:
|
||||
SRCS+= disklabel.c dkcksum.c lseek.c open.c read.c ufs.c
|
||||
SRCS+= disklabel.c dkcksum.c errno.c lseek.c open.c read.c ufs.c
|
||||
# from sys/lib/libkern:
|
||||
SRCS+= bcmp.c
|
||||
CLEANFILES+=${PROG}.aout ${PROG}.map mkboot ${ALL}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bootxx.c,v 1.15 1999/03/26 05:23:58 simonb Exp $ */
|
||||
/* $NetBSD: bootxx.c,v 1.16 1999/03/31 07:23:28 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -81,8 +81,6 @@
|
|||
|
||||
#include "byteswap.h"
|
||||
|
||||
int errno;
|
||||
|
||||
int loadfile __P((char *name));
|
||||
extern int clear_cache __P((char *addr, int len));
|
||||
|
||||
|
|
Loading…
Reference in New Issue