oops
This commit is contained in:
parent
964335f9e3
commit
2824a5ac9a
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ using namespace util::types;
|
||||||
using util::error::DracError, util::error::DracErrorCode;
|
using util::error::DracError, util::error::DracErrorCode;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
#ifdef __FreeBSD__
|
||||||
fn GetPathByPid(pid_t pid) -> Result<String, DracError> {
|
fn GetPathByPid(pid_t pid) -> Result<String, DracError> {
|
||||||
Array<char, PATH_MAX> exePathBuf;
|
Array<char, PATH_MAX> exePathBuf;
|
||||||
usize size = exePathBuf.size();
|
usize size = exePathBuf.size();
|
||||||
|
@ -54,6 +55,7 @@ namespace {
|
||||||
|
|
||||||
return String(exePathBuf.data());
|
return String(exePathBuf.data());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
fn GetX11WindowManager() -> Result<String, DracError> {
|
fn GetX11WindowManager() -> Result<String, DracError> {
|
||||||
using namespace xcb;
|
using namespace xcb;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue