summaryrefslogtreecommitdiff
path: root/openbsd-compat/sys-queue.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-10-26 16:46:31 +1000
committerDamien Miller <djm@mindrot.org>2007-10-26 16:46:31 +1000
commita95c0c224bf0969d57fabb27004f4c9b810c26fa (patch)
tree38e74128783bd0691be8486ce422b4d9f5cbcd31 /openbsd-compat/sys-queue.h
parent03c618afa3c19fe4574a5bc45eec09fd0b1d5990 (diff)
- otto@cvs.openbsd.org 2007/04/30 18:42:34
[openbsd-compat/sys-queue.h] Enable QUEUE_MACRO_DEBUG on DIAGNOSTIC kernels. Input and okays from krw@, millert@, otto@, deraadt@, miod@.
Diffstat (limited to 'openbsd-compat/sys-queue.h')
-rw-r--r--openbsd-compat/sys-queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/sys-queue.h b/openbsd-compat/sys-queue.h
index 7d231bca..5cf0587b 100644
--- a/openbsd-compat/sys-queue.h
+++ b/openbsd-compat/sys-queue.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.h,v 1.31 2005/11/25 08:06:25 otto Exp $ */
+/* $OpenBSD: queue.h,v 1.32 2007/04/30 18:42:34 pedro Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
@@ -167,7 +167,7 @@
* For details on the use of these macros, see the queue(3) manual page.
*/
-#ifdef QUEUE_MACRO_DEBUG
+#if defined(QUEUE_MACRO_DEBUG) || (defined(_KERNEL) && defined(DIAGNOSTIC))
#define _Q_INVALIDATE(a) (a) = ((void *)-1)
#else
#define _Q_INVALIDATE(a)