Created attachment 217212 [details]
Patch fixing the build.
Build problem caused by missing definitions in sys/vm/vm_map.h later used in sys/vm/vm_map.c
This doesn't make sense to me. What branch are you trying to build, and what version are you trying to build on? That patch isn't going to apply to head or stable/12 or releng/12.1.
(In reply to Mark Johnston from comment #1)
I'm sorry, after further investigation it turned out to be mismerge on local git repository cache.