1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[Haiku] Doesn't support readdir's d_type flag...

...which is a Linux thing and not part of the POSIX standard. Haiku may support it eventually, but as of today it does not.
This commit is contained in:
Augustin Cavalier 2014-06-30 12:44:10 -04:00
parent 45804d0c26
commit 96f3e4873e

View File

@ -75,6 +75,7 @@ pid_t ProcessInfo::GetPIDbyName(const char* cchrptr_ProcessName) const
// Loop while not NULL
while ((de_DirEntity = readdir(dir_proc))) {
#ifndef __HAIKU__
if (de_DirEntity->d_type == DT_DIR) {
if (IsNumeric(de_DirEntity->d_name)) {
strcpy(chrarry_CommandLinePath, "/proc/") ;
@ -108,6 +109,7 @@ pid_t ProcessInfo::GetPIDbyName(const char* cchrptr_ProcessName) const
}
}
}
#endif
}
closedir(dir_proc) ;