Add "struct proc;" inside the ifdef: <sys/proc.h> includes <machine/proc.h> before declaring struct proc.