diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2024-04-30 13:14:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 14:14:31 +0100 |
| commit | 07e070012bf02294e66fbb89ac8b37d61b790855 (patch) | |
| tree | e3f8895195e2882d0337479cdc8f7d8b5fa2bf7c /hyprpm/src/core/PluginManager.cpp | |
| parent | 801437cd540e5ed0b729a68e1e3f59c5bae99bca (diff) | |
CrashReporter: unbreak build on FreeBSD (#5786)
* CrashReporter: skip Linux field on BSDs after 90a53aed59be
In file included from src/debug/CrashReporter.cpp:10:
src/debug/signal-safe.hpp:113:17: error: no member named 'sa_restorer' in 'sigaction'
act.sa_restorer = NULL;
~~~ ^
* CrashReporter: ensure *argv[] is NULL-terminated after 90a53aed59be
execv() may fail with EFAULT otherwise.
* hyprpm: add missing header after 335015fe2def
hyprpm/src/core/PluginManager.cpp:165:43: error: use of undeclared identifier 'getuid'
165 | const std::string USERNAME = getpwuid(getuid())->pw_name;
| ^
hyprpm/src/core/PluginManager.cpp:431:45: error: use of undeclared identifier 'getuid'
431 | const std::string USERNAME = getpwuid(getuid())->pw_name;
| ^
hyprpm/src/core/PluginManager.cpp:558:43: error: use of undeclared identifier 'getuid'
558 | const std::string USERNAME = getpwuid(getuid())->pw_name;
| ^
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 72ec7861..7b454d8d 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -15,6 +15,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <pwd.h> +#include <unistd.h> #include <toml++/toml.hpp> |
