From ef1fcaf0f5bf501986c4c3d5c260c020eec57a92 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 23 Feb 2018 04:04:25 +0000 Subject: Do not include float interfaces when using libsa. We don't support float in the boot loaders, so don't include interfaces for float or double in systems headers. In addition, take the unusual step of spiking double and float to prevent any more accidental seepage. --- include/time.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index cacb7f2f26e4..52c95918f116 100644 --- a/include/time.h +++ b/include/time.h @@ -146,7 +146,9 @@ __BEGIN_DECLS char *asctime(const struct tm *); clock_t clock(void); char *ctime(const time_t *); +#ifndef _STANDALONE double difftime(time_t, time_t); +#endif /* XXX missing: getdate() */ struct tm *gmtime(const time_t *); struct tm *localtime(const time_t *); -- cgit v1.2.3