NetBSD-Bugs archive

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

Re: port-i386/53260: No compat_16_sys___sigaction14 syscall in 8.0_RC1 GENERIC



The following reply was made to PR port-i386/53260; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-i386/53260: No compat_16_sys___sigaction14 syscall in
 8.0_RC1 GENERIC
Date: Fri, 4 May 2018 15:06:45 +0800 (+08)

 I suggest the following change.  It moves the _MODULE conditional
 to surround only the variable definitions.
 
 Index: compat_mod.c
 ===================================================================
 RCS file: /cvsroot/src/sys/compat/common/compat_mod.c,v
 retrieving revision 1.24
 diff -u -p -r1.24 compat_mod.c
 --- compat_mod.c	5 Nov 2016 23:30:22 -0000	1.24
 +++ compat_mod.c	4 May 2018 07:04:55 -0000
 @@ -69,15 +69,15 @@ MODULE(MODULE_CLASS_EXEC, compat, NULL);
 
   int	ttcompat(struct tty *, u_long, void *, int, struct lwp *);
 
 -#ifdef _MODULE
   #ifdef COMPAT_16
   #if !defined(__amd64__) || defined(COMPAT_NETBSD32)
   #define COMPAT_SIGCONTEXT
 +#ifdef _MODULE
   extern char sigcode[], esigcode[];
   struct uvm_object *emul_netbsd_object;
 -#endif
 -#endif
   #endif /* _MODULE */
 +#endif /* !defined(__amd64__) || defined(COMPAT_NETBSD32) */
 +#endif /* COMPAT_16 */
 
   extern krwlock_t exec_lock;
   extern krwlock_t ttcompat_lock;
 
 +------------------+--------------------------+----------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
 +------------------+--------------------------+----------------------------+
 


Home | Main Index | Thread Index | Old Index