summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-03-31 22:11:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-03-31 22:11:38 +0000
commitf7ffe2a99c6cbddd32ff76a51be32ce9f01c515b (patch)
tree88dd813f5df90fe5aa5a190ea0d4439b6c3649a2 /sys/arch/mvme88k
parent5e57860b5b6bb1b876fafcb53bbe18340a2e9c82 (diff)
Compile libsa with -D_STANDALONE.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/stand/libsa/Makefile4
-rw-r--r--sys/arch/mvme88k/stand/libsa/clock.c11
2 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/mvme88k/stand/libsa/Makefile b/sys/arch/mvme88k/stand/libsa/Makefile
index 3ef8ae12bd8..46ea4b9698c 100644
--- a/sys/arch/mvme88k/stand/libsa/Makefile
+++ b/sys/arch/mvme88k/stand/libsa/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.9 2007/11/26 10:26:02 deraadt Exp $
+# $OpenBSD: Makefile,v 1.10 2008/03/31 22:11:37 miod Exp $
LIB=sa
@@ -27,7 +27,7 @@ SRCS+= ashrdi3.c bzero.c
# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
#DEFS= -DCOMPAT_UFS
-DEFS= -D__INTERNAL_LIBSA_CREAD
+DEFS= -D__INTERNAL_LIBSA_CREAD -D_STANDALONE
#DEFS+=-DNETIF_DEBUG
INCL= -I${.CURDIR} -I${.CURDIR}/../libbug -I${S}/lib/libsa -I${S}
CFLAGS+= ${XCFLAGS} ${COPTS} ${DEFS} ${DBG} ${INCL}
diff --git a/sys/arch/mvme88k/stand/libsa/clock.c b/sys/arch/mvme88k/stand/libsa/clock.c
index 1612654819f..3aa678f3a49 100644
--- a/sys/arch/mvme88k/stand/libsa/clock.c
+++ b/sys/arch/mvme88k/stand/libsa/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.4 2006/05/16 22:52:26 miod Exp $ */
+/* $OpenBSD: clock.c,v 1.5 2008/03/31 22:11:37 miod Exp $ */
#include <sys/types.h>
@@ -7,18 +7,9 @@
#include "stand.h"
#include "libsa.h"
-/*
- * BCD to decimal and decimal to BCD.
- */
-#define FROMBCD(x) (((x) >> 4) * 10 + ((x) & 0xf))
-#define TOBCD(x) (((x) / 10 * 16) + ((x) % 10))
-
-#define SECDAY (24 * 60 * 60)
-#define SECYR (SECDAY * 365)
#define LEAPYEAR(y) (((y) & 3) == 0)
#define YEAR0 68
-
/*
* This code is defunct after 2068.
* Will Unix still be here then??