Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/s6-dns: fix uclibc build
@ 2024-07-25 13:26 Dario Binacchi
  2024-07-25 15:53 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Dario Binacchi @ 2024-07-25 13:26 UTC (permalink / raw)
  To: buildroot; +Cc: Eric Le Bihan, Dario Binacchi

Fix the following build failure:

src/libs6dns/s6dns_hosts_init.c: In function 's6dns_hosts_init':
src/libs6dns/s6dns_hosts_init.c:34:27: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'?
   34 |     if (timespec_cmp(&stc.st_mtim, &str.st_mtim) > 0) goto useit ;
      |                           ^~~~~~~
      |                           st_mtime
src/libs6dns/s6dns_hosts_init.c:34:41: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'?
   34 |     if (timespec_cmp(&stc.st_mtim, &str.st_mtim) > 0) goto useit ;
      |                                         ^~~~~~~
      |                                         st_mtime

Fixes:
 - http://autobuild.buildroot.org/results/f97634e33c4ed94d6ab382a7c266288d814cfa0b

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 package/s6-dns/s6-dns.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/s6-dns/s6-dns.mk b/package/s6-dns/s6-dns.mk
index 8e175431a4b9..ecd7764add35 100644
--- a/package/s6-dns/s6-dns.mk
+++ b/package/s6-dns/s6-dns.mk
@@ -12,6 +12,7 @@ S6_DNS_INSTALL_STAGING = YES
 S6_DNS_DEPENDENCIES = skalibs
 
 S6_DNS_CONF_OPTS = \
+	CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
 	--prefix=/ \
 	--with-sysdeps=$(STAGING_DIR)/lib/skalibs/sysdeps \
 	--with-include=$(STAGING_DIR)/include \
-- 
2.43.0

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-25 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 13:26 [Buildroot] [PATCH 1/1] package/s6-dns: fix uclibc build Dario Binacchi
2024-07-25 15:53 ` Thomas Petazzoni via buildroot
2024-07-25 15:59   ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox