Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common Only do COMPAT_NETBSD32 stuff if _LP64
details: https://anonhg.NetBSD.org/src/rev/b7f86a9d40ad
branches: trunk
changeset: 780671:b7f86a9d40ad
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 03 07:51:21 2012 +0000
description:
Only do COMPAT_NETBSD32 stuff if _LP64
diffstat:
sys/compat/common/rndpseudo_50.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r bd56dffa3b39 -r b7f86a9d40ad sys/compat/common/rndpseudo_50.c
--- a/sys/compat/common/rndpseudo_50.c Fri Aug 03 07:49:18 2012 +0000
+++ b/sys/compat/common/rndpseudo_50.c Fri Aug 03 07:51:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndpseudo_50.c,v 1.1 2011/12/19 21:53:52 apb Exp $ */
+/* $NetBSD: rndpseudo_50.c,v 1.2 2012/08/03 07:51:21 matt Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo_50.c,v 1.1 2011/12/19 21:53:52 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo_50.c,v 1.2 2012/08/03 07:51:21 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -57,7 +57,7 @@
r50->flags = r->flags;
}
-#ifdef COMPAT_NETBSD32
+#if defined(COMPAT_NETBSD32) && defined(_LP64)
/*
* Convert from rndsource_t to rndsource50_32_t, for the results from
* RNDGETNUM50_32 and RNDGETNAME50_32.
@@ -110,7 +110,7 @@
break;
}
-#ifdef COMPAT_NETBSD32
+#if defined(COMPAT_NETBSD32) && defined(_LP64)
case RNDGETSRCNUM50_32:
{
rndstat_t rstbuf = {.start = 0};
@@ -154,7 +154,7 @@
break;
}
-#ifdef COMPAT_NETBSD32
+#if defined(COMPAT_NETBSD32) && defined(_LP64)
case RNDGETSRCNAME50_32:
{
rndstat_name_t rstnmbuf = {.name[0] = 0};
Home |
Main Index |
Thread Index |
Old Index