MoonchildProductions#1251 - Part 5: Fix POSIX compliance issue in process_util.h.

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.
athenian200 3 years ago committed by Roy Tam
parent afb2e3a054
commit bfb6af4f3a
  1. 4

@ -44,10 +44,12 @@ typedef PROCESSENTRY32 ProcessEntry;
typedef IO_COUNTERS IoCounters;
#elif defined(OS_POSIX)
// 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 {
int pid;
int ppid;
char szExeFile[NAME_MAX + 1];
char szExeFile[_POSIX_PATH_MAX + 1];
struct IoCounters {