Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/svr4 compile in the absense of SYSVSHM and SYSVSE...
details: https://anonhg.NetBSD.org/src/rev/8b3351d818aa
branches: trunk
changeset: 517379:8b3351d818aa
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 11 21:21:02 2001 +0000
description:
compile in the absense of SYSVSHM and SYSVSEM. pointed out by @@@.
diffstat:
sys/compat/svr4/svr4_misc.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 65fa6528417b -r 8b3351d818aa sys/compat/svr4/svr4_misc.c
--- a/sys/compat/svr4/svr4_misc.c Sun Nov 11 21:14:15 2001 +0000
+++ b/sys/compat/svr4/svr4_misc.c Sun Nov 11 21:21:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_misc.c,v 1.91 2001/05/06 04:32:08 ross Exp $ */
+/* $NetBSD: svr4_misc.c,v 1.92 2001/11/11 21:21:02 christos Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -668,7 +668,11 @@
*retval = 0; /* No delaytimer support */
break;
case SVR4_CONFIG_MQ_OPEN_MAX:
+#ifdef SYSVMSG
*retval = msginfo.msgmni;
+#else
+ *retval = 0;
+#endif
break;
case SVR4_CONFIG_MQ_PRIO_MAX:
*retval = 0; /* XXX: Don't know */
@@ -677,10 +681,18 @@
*retval = 0;
break;
case SVR4_CONFIG_SEM_NSEMS_MAX:
+#ifdef SYSVSEM
*retval = seminfo.semmni;
+#else
+ *retval = 0;
+#endif
break;
case SVR4_CONFIG_SEM_VALUE_MAX:
+#ifdef SYSVSEM
*retval = seminfo.semvmx;
+#else
+ *retval = 0;
+#endif
break;
case SVR4_CONFIG_SIGQUEUE_MAX:
*retval = 0; /* XXX: Don't know */
Home |
Main Index |
Thread Index |
Old Index