diff options
author | Bruno Haible <bruno@clisp.org> | 2017-09-25 21:31:25 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-09-26 02:43:21 +0200 |
commit | ad8ece88d4d22223218cc51a8fa4a3ec5f512e70 (patch) | |
tree | fecafb7826f0268776f6a9e9d5209c8f76442c9e /modules/vma-iter | |
parent | f969dd52a6974ba617ddb3930012a86b1ea4ce78 (diff) | |
download | gnulib-ad8ece88d4d22223218cc51a8fa4a3ec5f512e70.tar.gz |
vma-iter: Improvements for BSD platforms.
- Add support for GNU/kFreeBSD.
- Make it work on FreeBSD and NetBSD even when /proc is not mounted.
- Speed up on OpenBSD.
* lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
(vma_iterate_bsd): New function.
(vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
* modules/vma-iter (configure.ac): Require AC_C_INLINE.
Diffstat (limited to 'modules/vma-iter')
-rw-r--r-- | modules/vma-iter | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/vma-iter b/modules/vma-iter index 40e560532c..b681e2bdce 100644 --- a/modules/vma-iter +++ b/modules/vma-iter @@ -14,6 +14,7 @@ getpagesize configure.ac: gl_FUNC_MMAP_ANON +AC_REQUIRE([AC_C_INLINE]) AC_CHECK_FUNCS_ONCE([mquery pstat_getprocvm]) dnl On Solaris <= 9, <sys/procfs.h> is unusable when AC_SYS_LARGEFILE is in use. AC_CHECK_HEADERS([sys/procfs.h]) |