aarch64/lock.h: Need <sys/param.h> for _HARDKERNEL.

Add include guard while here.

XXX Why does this aarch64-specific file have #ifdef __aarch64__?
This commit is contained in:
riastradh 2022-07-24 20:28:32 +00:00
parent 6e619e7e36
commit 2827986044
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,9 @@
/* $NetBSD: lock.h,v 1.4 2021/09/26 20:15:04 jmcneill Exp $ */
/* $NetBSD: lock.h,v 1.5 2022/07/24 20:28:32 riastradh Exp $ */
#ifndef _AARCH64_LOCK_H_
#define _AARCH64_LOCK_H_
#include <sys/param.h>
#ifdef __aarch64__
# ifdef _HARDKERNEL
@ -11,3 +16,5 @@
#elif defined(__arm__)
# include <arm/lock.h>
#endif
#endif /* _AARCH64_LOCK_H_ */