[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_FUNC_MMAP lacks <unistd.h> include?
From: |
Sam James |
Subject: |
AC_FUNC_MMAP lacks <unistd.h> include? |
Date: |
Wed, 10 May 2023 02:40:12 +0100 |
User-agent: |
mu4e 1.10.3; emacs 29.0.90 |
Matt noticed in https://bugs.gentoo.org/898816 that
it appears AC_FUNC_MMAP is missing a <unistd.h> include:
```
> configure:16692: checking for working mmap
> configure:16844: x86_64-pc-linux-gnu-clang -o conftest -O2
> -march=native -pipe -Werror=implicit-function-declaration
> -Werror=implicit-int -Werror=incompatible-function-pointer-types
> -std=c99 -Wl,-O1 -Wl,--as-needed conftest.c >&5
> conftest.c:138:14: error: call to undeclared function 'getpagesize';
> ISO C99 and later do not support implicit function declarations
> [-Werror,-Wimplicit-function-declaration]
> pagesize = getpagesize ();
> ^
> 1 error generated.
```
It looks like this is still the case in master as well.
best,
sam
signature.asc
Description: PGP signature
- AC_FUNC_MMAP lacks <unistd.h> include?,
Sam James <=