mirror of
https://github.com/KDE/konsole.git
synced 2026-06-16 17:58:59 -04:00
Use cmake to check if we're on DragonFly BSD instead of __DragonFly__
builds on dragonfly 3.4-RELEASE DragonFly
(cherry picked from commit 08fb406533)
This commit is contained in:
@@ -22,6 +22,13 @@ else()
|
||||
set(ENABLE_DETACHING 1)
|
||||
endif()
|
||||
|
||||
### Handle DragonFlyBSD here instead of using __DragonFly__
|
||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly")
|
||||
set(HAVE_OS_DRAGONFLYBSD 1)
|
||||
else()
|
||||
set(HAVE_OS_DRAGONFLYBSD 0)
|
||||
endif()
|
||||
|
||||
include(CheckIncludeFiles)
|
||||
|
||||
configure_file(config-konsole.h.cmake
|
||||
|
||||
@@ -635,7 +635,7 @@ private:
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(__DragonFly__)
|
||||
#if defined(HAVE_OS_DRAGONFLYBSD)
|
||||
setName(kInfoProc->kp_comm);
|
||||
setPid(kInfoProc->kp_pid);
|
||||
setParentPid(kInfoProc->kp_ppid);
|
||||
@@ -685,7 +685,7 @@ private:
|
||||
}
|
||||
|
||||
virtual bool readCurrentDir(int aPid) {
|
||||
#if defined(__DragonFly__)
|
||||
#if defined(HAVE_OS_DRAGONFLYBSD)
|
||||
char buf[PATH_MAX];
|
||||
int managementInfoBase[4];
|
||||
size_t len;
|
||||
|
||||
@@ -3,3 +3,6 @@
|
||||
|
||||
/* Defined if you want detaching enabled */
|
||||
#cmakedefine ENABLE_DETACHING 1
|
||||
|
||||
/* Defined if on DragonFly BSD */
|
||||
#cmakedefine HAVE_OS_DRAGONFLYBSD 1
|
||||
|
||||
Reference in New Issue
Block a user