bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_FUNC_MMAP lacks <unistd.h> include?


From: Florian Weimer
Subject: Re: AC_FUNC_MMAP lacks <unistd.h> include?
Date: Wed, 17 May 2023 20:14:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

* Paul Eggert:

> diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
> index 5a0f0185..3d6e4aca 100644
> --- a/lib/autoconf/functions.m4
> +++ b/lib/autoconf/functions.m4

> +#ifndef getpagesize
> +# ifdef _SC_PAGESIZE
> +#  define getpagesize() sysconf (_SC_PAGESIZE)
> +# elif defined _SC_PAGE_SIZE
> +#  define getpagesize() sysconf (_SC_PAGE_SIZE)
> +# elif HAVE_GETPAGESIZE
> +int getpagesize ();

Isn't this a bit weird?  Why can't we rely on the HAVE_GETPAGESIZE
check?  Shouldn't <unistd.h> come from [AC_INCLUDES_DEFAULT]?

Thanks,
Florian




reply via email to

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