Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Also make declaration of sysctl_kern_maxptys() depe...



details:   https://anonhg.NetBSD.org/src/rev/9c8ef0c92cb6
branches:  trunk
changeset: 556081:9c8ef0c92cb6
user:      he <he%NetBSD.org@localhost>
date:      Sun Dec 07 10:31:32 2003 +0000

description:
Also make declaration of sysctl_kern_maxptys() depend on NPTY > 0.
Makes the mvme68k RAMDISK kernel compile again.

diffstat:

 sys/kern/init_sysctl.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r ba03147cbc8f -r 9c8ef0c92cb6 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Sun Dec 07 10:25:38 2003 +0000
+++ b/sys/kern/init_sysctl.c    Sun Dec 07 10:31:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.5 2003/12/06 21:33:51 martin Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.6 2003/12/07 10:31:32 he Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -125,7 +125,9 @@
 #if defined(SYSVMSG) || defined(SYSVSEM) || defined(SYSVSHM)
 static int sysctl_kern_sysvipc(SYSCTLFN_PROTO);
 #endif /* defined(SYSVMSG) || defined(SYSVSEM) || defined(SYSVSHM) */
+#if NPTY > 0
 static int sysctl_kern_maxptys(SYSCTLFN_PROTO);
+#endif /* NPTY > 0 */
 static int sysctl_kern_sbmax(SYSCTLFN_PROTO);
 static int sysctl_kern_urnd(SYSCTLFN_PROTO);
 static int sysctl_kern_lwp(SYSCTLFN_PROTO);



Home | Main Index | Thread Index | Old Index