AC_FUNC_MMAP lacks <unistd.h> include?
Sam James <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.bugs |
|---|---|
| Message-ID | <[email protected]> |
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
(application/pgp-signature, 377 B)
-----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZFr2Ll8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZCNmwEArKVz8lgYmbnDvMUuuv2FlboXXjBoGMb3UXpc vT7cCcsBAKYjQHjIvTecL/QBx6+OuCiu4wVJQtbDwG6w3kdqU+UE =wD33 -----END PGP SIGNATURE-----