X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..440d4c6cfad24426bfddca7518f16c17f4e443f7:/osfmk/kern/locks.c diff --git a/osfmk/kern/locks.c b/osfmk/kern/locks.c index 07b9924a1..7ee5a2f4e 100644 --- a/osfmk/kern/locks.c +++ b/osfmk/kern/locks.c @@ -53,7 +53,6 @@ * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ -#include #include #include @@ -366,6 +365,7 @@ void lck_attr_setdefault( lck_attr_t *attr) { +#if __i386__ || __x86_64__ #if !DEBUG if (LcksOpts & enaLkDeb) attr->lck_attr_val = LCK_ATTR_DEBUG; @@ -374,6 +374,9 @@ lck_attr_setdefault( #else attr->lck_attr_val = LCK_ATTR_DEBUG; #endif /* !DEBUG */ +#else +#error Unknown architecture. +#endif /* __arm__ */ }