summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-08-29 20:36:33 +0000
committerjhb <jhb@FreeBSD.org>2006-08-29 20:36:33 +0000
commit94a898c189056277d3ef70dc45bf61e092d120fb (patch)
treebcc6696e9728b649fdfd9eb10bc0332e77c92365 /sys
parentdd426758f6461cf3cc0ca7f241efa16f4f3ce84f (diff)
downloadFreeBSD-src-94a898c189056277d3ef70dc45bf61e092d120fb.zip
FreeBSD-src-94a898c189056277d3ef70dc45bf61e092d120fb.tar.gz
The _sx_assert() prototype should exist if either of INVARIANTS or
INVARIANT_SUPPORT is defined so you can build a kernel with INVARIANT_SUPPORT, but build a module with just INVARIANTS on. MFC after: 3 days Reported by: kuriyama
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sx.h b/sys/sys/sx.h
index 0abd94d..2be6e39 100644
--- a/sys/sys/sx.h
+++ b/sys/sys/sx.h
@@ -57,7 +57,7 @@ void _sx_sunlock(struct sx *sx, const char *file, int line);
void _sx_xunlock(struct sx *sx, const char *file, int line);
int _sx_try_upgrade(struct sx *sx, const char *file, int line);
void _sx_downgrade(struct sx *sx, const char *file, int line);
-#ifdef INVARIANT_SUPPORT
+#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
void _sx_assert(struct sx *sx, int what, const char *file, int line);
#endif
#ifdef DDB
OpenPOWER on IntegriCloud