Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mu-utils: Fix build with musl #2677

Merged
merged 1 commit into from
Apr 1, 2024
Merged

mu-utils: Fix build with musl #2677

merged 1 commit into from
Apr 1, 2024

Conversation

MatthewGentoo
Copy link
Contributor

In musl, stdout is a macro that expands to (stdout), and ::(stdout) is not valid C++.

../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected id-expression before '(' token
 268 |                              ::stdout);
     |                                ^~~~~~

Nothing in the Mu namespace is named stdout, so it is safe to drop the ::.

Bug: https://bugs.gentoo.org/928361

In musl, `stdout` is a macro that expands to `(stdout)`, and
`::(stdout)` is not valid C++.

../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected
  id-expression before '(' token
 268 |                              ::stdout);
     |                                ^~~~~~

Nothing in the Mu namespace is named stdout, so it is safe to drop
the `::`.

Bug: https://bugs.gentoo.org/928361
@MatthewGentoo
Copy link
Contributor Author

Would you accept a change to add Alpine Linux, or Gentoo Linux w/ musl to the CI workflow?

@djcb djcb merged commit e2be29f into djcb:master Apr 1, 2024
2 checks passed
@djcb
Copy link
Owner

djcb commented Apr 1, 2024

Merged, thanks.

@djcb
Copy link
Owner

djcb commented Apr 1, 2024

Would you accept a change to add Alpine Linux, or Gentoo Linux w/ musl to the CI workflow?

Sure, assuming after this PR that would work.

@MatthewGentoo MatthewGentoo deleted the bug-928361 branch April 3, 2024 12:13
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.

None yet

2 participants