Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common This file getscompiled even if COMPAT_60 i...



details:   https://anonhg.NetBSD.org/src/rev/e0739c8e007f
branches:  trunk
changeset: 782176:e0739c8e007f
user:      apb <apb%NetBSD.org@localhost>
date:      Fri Oct 19 17:32:20 2012 +0000

description:
This file getscompiled even if COMPAT_60 is not defined, so
protect most of the contents with #ifdef COMPAT_60

diffstat:

 sys/compat/common/tty_60.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 88dff19db006 -r e0739c8e007f sys/compat/common/tty_60.c
--- a/sys/compat/common/tty_60.c        Fri Oct 19 17:16:55 2012 +0000
+++ b/sys/compat/common/tty_60.c        Fri Oct 19 17:32:20 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_60.c,v 1.1 2012/10/19 16:55:22 apb Exp $   */
+/*     $NetBSD: tty_60.c,v 1.2 2012/10/19 17:32:20 apb Exp $   */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_60.c,v 1.1 2012/10/19 16:55:22 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_60.c,v 1.2 2012/10/19 17:32:20 apb Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -45,6 +45,8 @@
 #include <sys/tty.h>
 #include <compat/sys/ttycom.h>
 
+#ifdef COMPAT_60
+
 /* convert struct ptmget to struct compat_60_ptmget */
 static int
 ptmget_to_ptmget60(struct ptmget *pg, struct compat_60_ptmget *pg60)
@@ -112,3 +114,5 @@
                return EPASSTHROUGH;
        }
 }
+
+#endif /* COMPAT_60 */



Home | Main Index | Thread Index | Old Index