Skip to content

Conversation

@zephyrbot
Copy link

@zephyrbot zephyrbot commented Nov 19, 2024

Backport a785548 from #81415.

Fixes #81416

Remove unnecessary include in header and source file.

gmtime_r() is an extension to the C library, and therefore one
needs to explicitly ask for its prototype to have it exposed.
This is done by defining _POSIX_C_SOURCE so let's do so.

These two changes fix build errors with some libCs.
Tested with pico, newlib, minimal and the host glibc.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit a785548)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth labels Nov 19, 2024
@aescolar aescolar requested a review from dkalowsk November 28, 2024 08:37
@dkalowsk dkalowsk merged commit aae851f into v4.0-branch Dec 1, 2024
33 of 34 checks passed
@dkalowsk dkalowsk deleted the backport-81415-to-v4.0-branch branch December 1, 2024 22:43
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants