Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux32/common Remove #error, fixes the build. I ...



details:   https://anonhg.NetBSD.org/src/rev/44f6862390ac
branches:  trunk
changeset: 1026484:44f6862390ac
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 26 13:32:38 2021 +0000

description:
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.

diffstat:

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

diffs (31 lines):

diff -r a0a01dd97e41 -r 44f6862390ac sys/compat/linux32/common/linux32_signal.c
--- a/sys/compat/linux32/common/linux32_signal.c        Fri Nov 26 13:24:28 2021 +0000
+++ b/sys/compat/linux32/common/linux32_signal.c        Fri Nov 26 13:32:38 2021 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index