bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH glibc] Use proc_getchildren_rusage when available in getrusag


From: Samuel Thibault
Subject: Re: [PATCH glibc] Use proc_getchildren_rusage when available in getrusage and times.
Date: Sat, 17 Feb 2024 02:36:19 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Flavio Cruz, le ven. 16 févr. 2024 13:26:30 -0500, a ecrit:
> diff --git a/sysdeps/mach/configure.ac b/sysdeps/mach/configure.ac
> index 730fb25d..db1e453f 100644
> --- a/sysdeps/mach/configure.ac
> +++ b/sysdeps/mach/configure.ac

Mach is not necessarily about hurd :)

Better put it in sysdeps/mach/hurd/configure.ac

> @@ -104,4 +104,13 @@ if test $libc_cv_mach_i386_gdt = yes; then
>    AC_DEFINE([HAVE_I386_SET_GDT])
>  fi
>  
> +AC_CACHE_CHECK(for proc_getchildren_rusage in process.defs,
> +            libc_cv_hurd_proc_getchildren_rusage, [dnl
> +AC_EGREP_HEADER(proc_getchildren_rusage, hurd/process.defs,
> +             libc_cv_hurd_proc_getchildren_rusage=yes,
> +             libc_cv_hurd_proc_getchildren_rusage=no)])
> +if test $libc_cv_hurd_proc_getchildren_rusage = yes; then
> +  AC_DEFINE([HAVE_HURD_PROC_GETCHILDREN_RUSAGE])
> +fi

We probably want to make some m4 macro for this so it will be easy to
add such compatibility?

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]