diff options
| author | veego <veego@NetBSD.org> | 2000-11-20 06:36:02 +0000 |
|---|---|---|
| committer | veego <veego@NetBSD.org> | 2000-11-20 06:36:02 +0000 |
| commit | a174b8a5956ff2f07013ff5df774bd5aa4187229 (patch) | |
| tree | 6cf7e6bd544aa29d6b3627bb532445c71309c664 /sys | |
| parent | 4e1e67799665cee3f27915368badf7c0339961fc (diff) | |
simple_lock_held is only defined when you use LOCKDEBUG.
Put it for now in an ifdef LOCKDEBUG.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/tty_pty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index d8d38e7f2a6..f42b57aeb3b 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty_pty.c,v 1.52 2000/11/19 22:34:56 jdolecek Exp $ */ +/* $NetBSD: tty_pty.c,v 1.53 2000/11/20 06:36:02 veego Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -135,7 +135,9 @@ check_pty(dev) if (minor(dev) >= maxptys) { limit_reached: tablefull("pty", "increase kern.maxptys"); +#if defined(LOCKDEBUG) if (simple_lock_held(&pt_softc_mutex)) +#endif simple_unlock(&pt_softc_mutex); return (ENXIO); } |
