]> Savannah Git Hosting - gnulib.git/commitdiff
vma-iter: Fix compilation error on FreeBSD 5.2.1.
authorBruno Haible <bruno@clisp.org>
Sun, 15 Oct 2023 06:38:43 +0000 (08:38 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 19:14:36 +0000 (20:14 +0100)
* lib/vma-iter.c [FreeBSD]: Include <sys/param.h>.

ChangeLog
lib/vma-iter.c

index 8057a8cdfc7b49857b864772926b2410efb6d184..9db5923331080ff9639002b1dd620c12b06e916b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-15  Bruno Haible  <bruno@clisp.org>
+
+       vma-iter: Fix compilation error on FreeBSD 5.2.1.
+       * lib/vma-iter.c [FreeBSD]: Include <sys/param.h>.
+
 2023-10-13  Bruno Haible  <bruno@clisp.org>
 
        isnanf, isnand: Fix conflict with Solaris <ieeefp.h>.
index 2584d5ec34928d784ad5890840752eacab6e4d64..b28d21dc7a8609161c08a36c7e8ae070ddbf6436 100644 (file)
@@ -60,6 +60,7 @@
 #if defined __FreeBSD__ || defined __FreeBSD_kernel__ /* FreeBSD, GNU/kFreeBSD */
 # include <sys/types.h>
 # include <sys/mman.h> /* mmap, munmap */
+# include <sys/param.h> /* prerequisite of <sys/user.h> */
 # include <sys/user.h> /* struct kinfo_vmentry */
 # include <sys/sysctl.h> /* sysctl */
 #endif