Skip to content

Conversation

@alejandro-colomar
Copy link
Collaborator

This reduces build system code, as well as some definitions in our source code.

That's the libc macro for this file.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
That's the libc macro for this file.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar alejandro-colomar marked this pull request as draft September 12, 2025 06:58
Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if all UNIX variants using this project contain those definitions?

@alejandro-colomar
Copy link
Collaborator Author

Do you know if all UNIX variants using this project contain those definitions?

I guess the only systems using this project are really musl and glibc. If all checks have passed, it means they have them.

And the worst thing that could happen if someone wants to port this project to some other system where it's not available, it's that they would have a compiler error and would need to define it themselves, which is rather trivial.

FWIW, I checked NetBSD and it provides them (in a different header). I assume that the other BSDs also have these macros.

Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I see it's in draft state so I won't merge it. Feel free to do so if you feel it's ready.

@alejandro-colomar
Copy link
Collaborator Author

Ahh, I probably forgot to open it. Done. Thanks for the reminder!

@alejandro-colomar alejandro-colomar marked this pull request as ready for review September 15, 2025 09:46
@alejandro-colomar alejandro-colomar merged commit 79ddd58 into shadow-maint:master Sep 15, 2025
11 checks passed
@alejandro-colomar alejandro-colomar deleted the paths branch September 22, 2025 06:42
@alejandro-colomar alejandro-colomar self-assigned this Dec 27, 2025
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