git: 234aeaa0b349 - main - misc/ecflow: Fix build on 12

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 04 Sep 2022 18:31:01 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=234aeaa0b349bbac3ee9d9a7e47e4b81957724fa

commit 234aeaa0b349bbac3ee9d9a7e47e4b81957724fa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-04 17:26:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-04 18:30:56 +0000

    misc/ecflow: Fix build on 12
    
    Missing #include <time.h> caused build failure.
    
    Reported by:    fallout
---
 misc/ecflow/files/patch-ACore_src_Passwd.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/misc/ecflow/files/patch-ACore_src_Passwd.cpp b/misc/ecflow/files/patch-ACore_src_Passwd.cpp
new file mode 100644
index 000000000000..c9d73cf813e2
--- /dev/null
+++ b/misc/ecflow/files/patch-ACore_src_Passwd.cpp
@@ -0,0 +1,14 @@
+- fixes failure: error: use of undeclared identifier 'time' on FreeBSD 12
+- This seems to be a general problem that this header isn't included.
+- it's unclear how to report bugs: emails to Software.Software@ecmwf.int bounce, and linked JIRA account has no such project.
+
+--- ACore/src/Passwd.cpp.orig	2022-09-04 16:37:50 UTC
++++ ACore/src/Passwd.cpp
+@@ -13,6 +13,7 @@
+ // Description :
+ //============================================================================
+ 
++#include <time.h> // for time(3)
+ #include <unistd.h>
+ 
+ #include "Passwd.hpp"