]> 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, 15 Oct 2023 06:38:43 +0000 (08:38 +0200)
* lib/vma-iter.c [FreeBSD]: Include <sys/param.h>.

ChangeLog
lib/vma-iter.c

index 41c24812d88a3bb0d1832969acb1a68591cc90fb..ef440addaf978c7d5e618dfd902a0131b0ceb307 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-14  Bruno Haible  <bruno@clisp.org>
 
        totalorder*: Document glibc bug on SH4.
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