package/drogon: Fix incomplete 'struct tm' type on uClibc
PATCH 1/1 package/drogon: Fix incomplete 'struct tm' type on uClibc
Add a patch including <time.h> in Date.h to fix the following build failure:
Date.cc:98:28: error: return type 'struct trantor::tm' is incomplete
98 | struct tm Date::tmStruct() const
| ^~~~~
Fixes:
- https://autobuild.buildroot.org/results/e48e0fc1b95a8ad5de964b1e6d12bc45ac39f0b4
--- ...-incomplete-struct-tm-type-on-uClibc.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/drogon/0002-Fix-incomplete-struct-tm-type-on-uClibc.patch
package/drogon/0002-Fix-incomplete-struct-tm-type-on-uClibc.patch new file +36 -0
@@ -0,0 +1,36 @@ +From cd29aa61d299c82d82d3285215fc4fc65e4d4fb9 Mon Sep 17 00:00:00 2001 +From: Dario Binacchi <[email protected]> +Date: Sun, 30 Aug 2026 12:00:00 +0200 +Subject: [PATCH] Fix incomplete 'struct tm' type on uClibc + +Fix a build failure [1] reported by Buildroot autobuild for the +mips/uClibc configuration: + + Date.cc:98:28: error: return type 'struct trantor::tm' is incomplete + 98 | struct tm Date::tmStruct() const + | ^~~~~ + +Add the missing include to Date.h. + +[1] https://autobuild.buildroot.org/results/e48e0fc1b95a8ad5de964b1e6d12bc45ac39f0b4/ +Signed-off-by: Dario Binacchi <[email protected]> +Upstream: https://github.com/an-tao/trantor/pull/415 +--- + trantor/utils/Date.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/trantor/trantor/utils/Date.h b/trantor/trantor/utils/Date.h +index 4367d76e0305..41b02d355d14 100644 +--- a/trantor/trantor/utils/Date.h ++++ b/trantor/trantor/utils/Date.h +@@ -16,6 +16,7 @@ + + #include <trantor/exports.h> + #include <stdint.h> ++#include <time.h> + #include <string> + + namespace trantor +-- +2.43.0 +
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dario" == Dario Binacchi <[email protected]> writes:
Add a patch including <
time.h> inDate.hto fix the following build failure:
Quoted 8 lines
Date.cc:98:28: error: return type 'struct
trantor::tm' is incomplete
98 | struct tmDate::tmStruct()const
| ^~~~~Fixes:
- https://autobuild.buildroot.org/results/e48e0fc1b95a8ad5de964b1e6d12bc45ac39f0b4Signed-off-by Dario Binacchi <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot