mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 06:07:30 +09:00
MoonchildProductions#1251 - Part 5: Fix POSIX compliance issue in process_util.h.
https://bugzilla.mozilla.org/show_bug.cgi?id=1364865 Solaris doesn't define NAME_MAX because if you read the current POSIX standard literally, no system that supports multiple file systems or networking should be defining it. It's a pedantic choice given that they USED to define NAME_MAX, but Solaris always did take POSIX compliance seriously, for better or worse.
This commit is contained in:
parent
afb2e3a054
commit
bfb6af4f3a
1 changed files with 3 additions and 1 deletions
|
|
@ -44,10 +44,12 @@ typedef PROCESSENTRY32 ProcessEntry;
|
||||||
typedef IO_COUNTERS IoCounters;
|
typedef IO_COUNTERS IoCounters;
|
||||||
#elif defined(OS_POSIX)
|
#elif defined(OS_POSIX)
|
||||||
// TODO(port): we should not rely on a Win32 structure.
|
// TODO(port): we should not rely on a Win32 structure.
|
||||||
|
// Using NAME_MAX here would raise POSIX compliance issues
|
||||||
|
// (see Mozilla bug 1364865).
|
||||||
struct ProcessEntry {
|
struct ProcessEntry {
|
||||||
int pid;
|
int pid;
|
||||||
int ppid;
|
int ppid;
|
||||||
char szExeFile[NAME_MAX + 1];
|
char szExeFile[_POSIX_PATH_MAX + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IoCounters {
|
struct IoCounters {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue