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:
Kurt Hindenburg
2013-09-13 23:45:34 -04:00
parent 69479c2176
commit 2fa8435aa1
3 changed files with 12 additions and 2 deletions

View File

@@ -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;