On Sun, Jul 19, 2015 at 06:56:10PM -0600, Philip Guenther wrote: > CVSROOT: /cvs > Module name: src > Changes by: guent...@cvs.openbsd.org 2015/07/19 18:56:10 > > Modified files: > sys/sys : unistd.h proc.h > sys/uvm : uvm_mmap.c > sys/kern : syscalls.master kern_exec.c > > Log message: > Add kbind, a syscall for ld.so to use to securely and efficiently update > memory for lazy binding > > ok deraadt@ >
This commit broke the build on arm and likely elsewhere: ../../../../uvm/uvm_mmap.c: In function 'sys_kbind': ../../../../uvm/uvm_mmap.c:1168: error: dereferencing pointer to incomplete type *** Error 1 in /usr/src/sys/arch/armv7/compile/GENERIC (Makefile:671 'uvm_mmap.o ') Index: uvm_mmap.c =================================================================== RCS file: /cvs/src/sys/uvm/uvm_mmap.c,v retrieving revision 1.110 diff -u -p -r1.110 uvm_mmap.c --- uvm_mmap.c 20 Jul 2015 00:56:10 -0000 1.110 +++ uvm_mmap.c 20 Jul 2015 04:44:59 -0000 @@ -66,6 +66,7 @@ #include <sys/specdev.h> #include <sys/stdint.h> #include <sys/unistd.h> /* for KBIND* */ +#include <sys/user.h> #include <machine/exec.h> /* for __LDPGSZ */