summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-03-19 01:16:00 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-19 12:09:06 +0000
commit93bc67e4fe8a335618d6cd5e4abd749bbe881204 (patch)
tree3addc73ecf33fa82473ce34204c78649780405a8
parent4d4d61f961a5577a8721b6ff1e2efda8ab2a71f5 (diff)
downloadpoky-93bc67e4fe8a335618d6cd5e4abd749bbe881204.tar.gz
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 (From OE-Core rev: afc888d87fbf268c43bbcc81aa378eb9d58397a8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/at/at/posixtm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-extended/at/at/posixtm.c b/meta/recipes-extended/at/at/posixtm.c
index 5514ba4fe2..bba8312d9a 100644
--- a/meta/recipes-extended/at/at/posixtm.c
+++ b/meta/recipes-extended/at/at/posixtm.c
@@ -20,7 +20,7 @@
20/* Yacc-based version written by Jim Kingdon and David MacKenzie. 20/* Yacc-based version written by Jim Kingdon and David MacKenzie.
21 Rewritten by Jim Meyering. */ 21 Rewritten by Jim Meyering. */
22 22
23#include <config.h> 23#include "config.h"
24 24
25#include "posixtm.h" 25#include "posixtm.h"
26 26
@@ -42,8 +42,6 @@
42 of `digit' even when the host does not conform to POSIX. */ 42 of `digit' even when the host does not conform to POSIX. */
43#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9) 43#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
44 44
45time_t mktime ();
46
47/* 45/*
48 POSIX requires: 46 POSIX requires:
49 47