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

Unbreak build on FreeBSD #8762

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Unbreak build on FreeBSD #8762

merged 2 commits into from
Dec 18, 2024

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Dec 18, 2024

Regressed by #8664. See #1708 for more details.

@github-actions github-actions bot added the core label Dec 18, 2024
vaxerski
vaxerski previously approved these changes Dec 18, 2024
@vaxerski
Copy link
Member

missing clang-format

src/signal-safe.cpp Outdated Show resolved Hide resolved
BSD systems don't declare environ(7) in any header like POSIX suggests.

src/signal-safe.cpp:12:23: error: use of undeclared identifier 'environ'
   12 |     for (char** var = environ; *var != nullptr; var++) {
      |                       ^
@vaxerski
Copy link
Member

I fixed it for ya

@vaxerski vaxerski merged commit df06cb4 into hyprwm:main Dec 18, 2024
11 checks passed
vaxerski added a commit that referenced this pull request Dec 19, 2024
* CrashReporter: restore explicit environ(7) after 8bbeee1

BSD systems don't declare environ(7) in any header like POSIX suggests.

src/signal-safe.cpp:12:23: error: use of undeclared identifier 'environ'
   12 |     for (char** var = environ; *var != nullptr; var++) {
      |                       ^

* fix

---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants