All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tipidee: fix uclibc build
@ 2024-07-24 11:55 Fabrice Fontaine
  2024-07-26 20:46 ` J. Neuschäfer via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2024-07-24 11:55 UTC (permalink / raw)
  To: buildroot; +Cc: J . Neuschäfer, Fabrice Fontaine

Set _GNU_SOURCE in CFLAGS to fix the following uclibc build failure
raised since the addition of the package in commit
17deaf60f66fc08a796233920a104e5233b501e0:

src/libtipidee/tipidee_response_header_lastmodified.c: In function 'tipidee_response_header_lastmodified':
src/libtipidee/tipidee_response_header_lastmodified.c:17:36: error: 'const struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'?
   17 |   if (!tain_from_timespec(&t, &st->st_mtim)) return 0 ;
      |                                    ^~~~~~~
      |                                    st_mtime

Fixes: 17deaf60f66fc08a796233920a104e5233b501e0
 - http://autobuild.buildroot.org/results/f07d6d6ae2331f9972974093c0503b9d3c6b914a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/tipidee/tipidee.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/tipidee/tipidee.mk b/package/tipidee/tipidee.mk
index 915b4f84bd..cb33b153e6 100644
--- a/package/tipidee/tipidee.mk
+++ b/package/tipidee/tipidee.mk
@@ -11,6 +11,7 @@ TIPIDEE_LICENSE_FILES = COPYING
 TIPIDEE_DEPENDENCIES = skalibs
 
 TIPIDEE_CONF_OPTS = \
+	CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
 	--prefix=/usr \
 	--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] 4+ messages in thread

end of thread, other threads:[~2024-07-27  9:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24 11:55 [Buildroot] [PATCH 1/1] package/tipidee: fix uclibc build Fabrice Fontaine
2024-07-26 20:46 ` J. Neuschäfer via buildroot
2024-07-26 20:59   ` Fabrice Fontaine
2024-07-27  9:51     ` J. Neuschäfer via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.