summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-08-28 18:25:15 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-08-28 18:25:15 +0000
commite5185470176f4030880f802181f16c85b9aace8c (patch)
treebea596e7d020013363f5304116a9bae8693ed769
parentfa771bf3ad5967a4a6232abeb8dbae9dc9233f67 (diff)
don't reference seminfo if SYSVSEM isn't defined
-rw-r--r--sys/compat/svr4/svr4_misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 27fe41e84a3..b170785309b 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_misc.c,v 1.34 2001/08/26 06:25:10 deraadt Exp $ */
+/* $OpenBSD: svr4_misc.c,v 1.35 2001/08/28 18:25:14 jason Exp $ */
/* $NetBSD: svr4_misc.c,v 1.42 1996/12/06 03:22:34 christos Exp $ */
/*
@@ -565,12 +565,14 @@ svr4_sys_sysconfig(p, v, retval)
case SVR4_CONFIG_RTSIG_MAX:
*retval = 0;
break;
+#ifdef SYSVSEM
case SVR4_CONFIG_SEM_NSEMS_MAX:
*retval = seminfo.semmni;
break;
case SVR4_CONFIG_SEM_VALUE_MAX:
*retval = seminfo.semvmx;
break;
+#endif
case SVR4_CONFIG_SIGQUEUE_MAX:
*retval = 0; /* XXX: Don't know */
break;