Skip to content

meson.build: Define _DEFAULT_SOURCE for realpath() - #120

Merged
landerweit-phytec merged 1 commit into
mainfrom
wip-realpath-fix
Oct 12, 2026
Merged

landerweit-phytec merged 1 commit into
mainfrom
wip-realpath-fix

Conversation

@mschwan-phytec

Copy link
Copy Markdown
Collaborator

Since commit 4560980 ("src: main: Allow passing symlinks as device paths"), partup uses realpath(). This POSIX function is not declared by glibc when building with strict -std=c99, which results in an implicit declaration.

Define _DEFAULT_SOURCE project-wide to expose it, while keeping the strict C99 standard.

Since commit 4560980 ("src: main: Allow passing symlinks as device
paths"), partup uses realpath(). This POSIX function is not declared by
glibc when building with strict -std=c99, which results in an implicit
declaration.

Define _DEFAULT_SOURCE project-wide to expose it, while keeping the
strict C99 standard.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
@landerweit-phytec
landerweit-phytec merged commit f96cc32 into main Oct 12, 2026
4 checks passed
@landerweit-phytec
landerweit-phytec deleted the wip-realpath-fix branch October 12, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants