Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	linux-amarula@amarulasolutions.com
Subject: [Buildroot] [PATCH 1/1] package/drogon: Fix incomplete 'struct tm' type on uClibc
Date: Sun, 30 Aug 2026 17:48:11 +0200	[thread overview]
Message-ID: <20260830154811.455436-1-dario.binacchi@amarulasolutions.com> (raw)

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

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 ...-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

diff --git a/package/drogon/0002-Fix-incomplete-struct-tm-type-on-uClibc.patch b/package/drogon/0002-Fix-incomplete-struct-tm-type-on-uClibc.patch
new file mode 100644
index 000000000000..4fad84664cb9
--- /dev/null
+++ b/package/drogon/0002-Fix-incomplete-struct-tm-type-on-uClibc.patch
@@ -0,0 +1,36 @@
+From cd29aa61d299c82d82d3285215fc4fc65e4d4fb9 Mon Sep 17 00:00:00 2001
+From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
+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 <dario.binacchi@amarulasolutions.com>
+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
+
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2026-08-30 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 15:48 Dario Binacchi [this message]
2026-09-01 14:09 ` [Buildroot] [PATCH 1/1] package/drogon: Fix incomplete 'struct tm' type on uClibc Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260830154811.455436-1-dario.binacchi@amarulasolutions.com \
    --to=dario.binacchi@amarulasolutions.com \
    --cc=buildroot@buildroot.org \
    --cc=linux-amarula@amarulasolutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox