Module Name: src
Committed By: apb
Date: Fri Oct 19 17:32:20 UTC 2012
Modified Files:
src/sys/compat/common: tty_60.c
Log Message:
This file getscompiled even if COMPAT_60 is not defined, so
protect most of the contents with #ifdef COMPAT_60
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/tty_60.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/common/tty_60.c
diff -u src/sys/compat/common/tty_60.c:1.1 src/sys/compat/common/tty_60.c:1.2
--- src/sys/compat/common/tty_60.c:1.1 Fri Oct 19 16:55:22 2012
+++ src/sys/compat/common/tty_60.c Fri Oct 19 17:32:20 2012
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: tty_60.c,v 1
#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 @@ compat_60_ptmioctl(dev_t dev, u_long cmd
return EPASSTHROUGH;
}
}
+
+#endif /* COMPAT_60 */