Module Name: src Committed By: christos Date: Fri Nov 26 13:32:38 UTC 2021
Modified Files: src/sys/compat/linux32/common: linux32_signal.c Log Message: Remove #error, fixes the build. I don't understand why this would not work on big endian. We use this construct to convert pointers everywhere else. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/compat/linux32/common/linux32_signal.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/linux32/common/linux32_signal.c diff -u src/sys/compat/linux32/common/linux32_signal.c:1.23 src/sys/compat/linux32/common/linux32_signal.c:1.24 --- src/sys/compat/linux32/common/linux32_signal.c:1.23 Mon Nov 1 01:07:16 2021 +++ src/sys/compat/linux32/common/linux32_signal.c Fri Nov 26 08:32:38 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_signal.c,v 1.23 2021/11/01 05:07:16 thorpej Exp $ */ +/* $NetBSD: linux32_signal.c,v 1.24 2021/11/26 13:32:38 christos Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.23 2021/11/01 05:07:16 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.24 2021/11/26 13:32:38 christos Exp $"); #include <sys/param.h> #include <sys/ucred.h> @@ -679,12 +679,8 @@ linux32_to_native_sigevent(struct sigeve return ENOTSUP; } -#if _BYTE_ORDER == _LITTLE_ENDIAN nsep->sigev_value.sival_ptr = NETBSD32PTR64(lsep->sigev_value.sival_ptr); -#else -#error This is probably broken on big-endian platforms. -#endif if (lsep->sigev_signo < 0 || lsep->sigev_signo >= LINUX32__NSIG) { return EINVAL;