зеркало из https://github.com/mozilla/pjs.git
Bug 678024 - Fix build with c++0x and clang. geteuid returns an unsigned value, and in c++0x we need an explicit cast to int in an initializer list; r=roc
This commit is contained in:
Родитель
c20c7473d6
Коммит
1934d6a44e
|
@ -186,7 +186,7 @@ NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name,
|
|||
// but trying to find where we were in a constantly changing list is basically
|
||||
// impossible.
|
||||
|
||||
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, geteuid() };
|
||||
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, int(geteuid()) };
|
||||
|
||||
// Since more processes could start between when we get the size and when
|
||||
// we get the list, we do a loop to keep trying until we get it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче