On Wed, Apr 27, 2016 at 06:04:32PM -0400, i80...@foxquill.com wrote:
> POSIX specifies that siginfo_t.si_addr must be void*. OpenBSD currently
> defines it as caddr_t. This breaks some userspace programs, such as the
> following minimal case:

This 

> The following patch builds the base system cleanly on x86_64, and
> resolves the problem.
> 
> diff --git a/src/sys/sys/siginfo.h b/src/sys/sys/siginfo.h
> index 814e8f2..1e8365f 100644
> --- a/src/sys/sys/siginfo.h
> +++ b/src/sys/sys/siginfo.h
> @@ -150,7 +150,7 @@ typedef struct {
>                       } _pdata;
>               } _proc;
>               struct {        /* SIGSEGV, SIGBUS, SIGILL and SIGFPE */
> -                     caddr_t _addr;          /* faulting address */
> +                     char    *_addr;         /* faulting address */
>                       int     _trapno;        /* illegal trap number */
>               } _fault;
>  #if 0

and this disagree?

Joerg

Reply via email to