From: Khem Raj Date: Wed, 19 Mar 2025 08:16:00 +0000 (-0700) Subject: at: Remove mktime signature from posixtm.c X-Git-Tag: 2025-04-walnascar~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afc888d87fbf268c43bbcc81aa378eb9d58397a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git at: Remove mktime signature from posixtm.c This is in conflict with signature from system time.h extern time_t mktime (struct tm *__tp) __THROW; GCC-15 with C23 on, this is treated at error posixtm.c:45:8: error: conflicting types for 'mktime'; have 'time_t(void)' {aka 'long int(void)'} | 45 | time_t mktime (); | | ^~~~~~ | config.h is local include file to use quotes to include it Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/at/at/posixtm.c b/meta/recipes-extended/at/at/posixtm.c index 5514ba4fe26..bba8312d9a8 100644 --- a/meta/recipes-extended/at/at/posixtm.c +++ b/meta/recipes-extended/at/at/posixtm.c @@ -20,7 +20,7 @@ /* Yacc-based version written by Jim Kingdon and David MacKenzie. Rewritten by Jim Meyering. */ -#include +#include "config.h" #include "posixtm.h" @@ -42,8 +42,6 @@ of `digit' even when the host does not conform to POSIX. */ #define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9) -time_t mktime (); - /* POSIX requires: