[SIGAR-122] ARG_MAX undefined on glibc 2.8

This commit is contained in:
Doug MacEachern 2008-09-27 15:59:39 +00:00
parent 25522f31c8
commit 062d08d9ce
1 changed files with 5 additions and 0 deletions

View File

@ -882,6 +882,11 @@ int sigar_os_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
return sigar_procfs_args_get(sigar, pid, procargs);
}
/* glibc 2.8 XXX use sysconf(_SC_ARG_MAX) */
#ifndef ARG_MAX
#define ARG_MAX 131072
#endif
int sigar_proc_env_get(sigar_t *sigar, sigar_pid_t pid,
sigar_proc_env_t *procenv)
{