summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-25 04:31:25 +0000
committerbde <bde@FreeBSD.org>2002-02-25 04:31:25 +0000
commit1d63dbb1d3cc62338c26c5d3982c5725d6aa96e0 (patch)
tree98a91471966bbbb9463247ea3fc992c0ba38341f /sys/boot/common/bootstrap.h
parent3e9af13b4e1179218cba63824fd13e87dfc7b7dd (diff)
downloadFreeBSD-src-1d63dbb1d3cc62338c26c5d3982c5725d6aa96e0.zip
FreeBSD-src-1d63dbb1d3cc62338c26c5d3982c5725d6aa96e0.tar.gz
Declare time(not3) instead of depending on namespace pollution 3 layers
deep in <stand.h> to eventually include <time.h> to declare the user version. This is not quite the right place to declare it, but <stand.h> would be worse because time() is very MD so it isn't in libstand. Many places in the boot sources still get the user version using only 1 layer of pollution (#include <sys/time.h>. Some pollute themselves directly (#include <time.h>). But the boot Makefiles are too broken to enable warnings for redeclarations.
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index d2144c3..9367149 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -285,3 +285,5 @@ extern struct arch_switch archsw;
void delay(int delay);
void dev_cleanup(void);
+
+time_t time(time_t *tloc);
OpenPOWER on IntegriCloud