diff options
author | Jan Beich <[email protected]> | 2024-12-18 19:15:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-18 20:15:44 +0100 |
commit | df06cb4d71a291171c02467c384471f90832d23b (patch) | |
tree | fe82aa402528134e9ec8a5e15a5af1faf27d69f0 /src | |
parent | 0fec38fe727954e5c4cf51423a6aba03646ad5da (diff) | |
download | Hyprland-df06cb4d71a291171c02467c384471f90832d23b.tar.gz Hyprland-df06cb4d71a291171c02467c384471f90832d23b.zip |
core: Unbreak build on FreeBSD (#8762)
* CrashReporter: restore explicit environ(7) after 8bbeee11734d
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/signal-safe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/signal-safe.cpp b/src/signal-safe.cpp index 2f377bf7..baee7b44 100644 --- a/src/signal-safe.cpp +++ b/src/signal-safe.cpp @@ -7,6 +7,10 @@ #include <unistd.h> #include <cstring> +// NOLINTNEXTLINE +extern "C" char** environ; + +// char const* sigGetenv(char const* name) { const size_t len = strlen(name); for (char** var = environ; *var != nullptr; var++) { |