]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
at: Remove mktime signature from posixtm.c
authorKhem Raj <raj.khem@gmail.com>
Wed, 19 Mar 2025 08:16:00 +0000 (01:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Mar 2025 12:09:04 +0000 (12:09 +0000)
commitafc888d87fbf268c43bbcc81aa378eb9d58397a8
tree5e611ba6865a6d73b0553434931a60c3235f0f2a
parent4ae08da819d1bc5fee382651c3fe074e9be9d86e
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 <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/at/at/posixtm.c