git: 087f336455ec - stable/12 - Declare time()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Oct 2021 06:11:06 UTC
The branch stable/12 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=087f336455ec4aeacc19415cb779fc7b04fa36fc
commit 087f336455ec4aeacc19415cb779fc7b04fa36fc
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2020-08-28 05:40:02 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 05:24:27 +0000
Declare time()
Time is used and was accidentally brought in through header
pollution. Declare it in stand.h directly instead.
(cherry picked from commit b9c5b432637c04d4a803170b2fab7c9df2ef787b)
---
stand/libsa/stand.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h
index c80edba48fa1..a7bef4184e3a 100644
--- a/stand/libsa/stand.h
+++ b/stand/libsa/stand.h
@@ -409,6 +409,11 @@ extern struct fs_ops *file_system[];
extern struct fs_ops *exclusive_file_system;
extern struct devsw *devsw[];
+/*
+ * Time routines
+ */
+time_t time(time_t *);
+
/*
* Expose byteorder(3) functions.
*/