diff options
author | kevans <kevans@FreeBSD.org> | 2018-04-06 19:17:59 +0000 |
---|---|---|
committer | kevans <kevans@FreeBSD.org> | 2018-04-06 19:17:59 +0000 |
commit | 19dfc8ee1aecd5783a12179ad7c7ece094f8f244 (patch) | |
tree | 0119f107f25d780f1f054eba176e099e795136b4 /include | |
parent | 84866047ccb75cc68856381bec657ef8586c24db (diff) | |
download | FreeBSD-src-19dfc8ee1aecd5783a12179ad7c7ece094f8f244.zip FreeBSD-src-19dfc8ee1aecd5783a12179ad7c7ece094f8f244.tar.gz |
MFC r329859,r329860: Float protection in stand
r329859: 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.
r329860: Floaty McFloatface is funnier...
Diffstat (limited to 'include')
-rw-r--r-- | include/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 54c7e49..cfd22df 100644 --- a/include/time.h +++ b/include/time.h @@ -144,7 +144,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 *); |