mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
45804d0c26
commit
96f3e4873e
2
src/lib/3rdparty/processinfo.cpp
vendored
2
src/lib/3rdparty/processinfo.cpp
vendored
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user