Fix merge error: drop machine from an older workaround for machine.sse
under compat32, drop the assertion, initialize oldlen.
This commit is contained in:
parent
7f1183f226
commit
c271d4f25f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fenv.c,v 1.1 2010/07/31 21:47:53 joerg Exp $ */
|
||||
/* $NetBSD: fenv.c,v 1.2 2010/07/31 22:14:18 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004-2005 David Schultz <das@FreeBSD.ORG>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: fenv.c,v 1.1 2010/07/31 21:47:53 joerg Exp $");
|
||||
__RCSID("$NetBSD: fenv.c,v 1.2 2010/07/31 22:14:18 joerg Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
@ -119,12 +119,10 @@ static void __test_sse(void) __attribute__ ((constructor));
|
||||
|
||||
static void __test_sse(void)
|
||||
{
|
||||
char machine[64];
|
||||
size_t oldlen;
|
||||
size_t oldlen = sizeof(HAS_SSE);
|
||||
int rv;
|
||||
|
||||
rv = sysctlbyname("machdep.sse", &__HAS_SSE, &oldlen, NULL, 0);
|
||||
_DIAGASSERT(rv != -1);
|
||||
if (rv == -1)
|
||||
__HAS_SSE = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user