Subject: siginfo_t & SA_SIGINFO
To: None <current-users@netbsd.org>
From: Shin'ichiro TAYA <taya@netbsd.org>
List: current-users
Date: 11/29/2002 19:21:35
since siginfo_t has been added, mozilla's configure script detects
it and #define HAVE_SIGINFO_T.
and there are codes like follows:

mozilla/profile/src/nsProfileAccess.cpp, line 1676

#ifdef HAVE_SIGINFO_T
        if (oldact->sa_flags & SA_SIGINFO) {
            if (oldact->sa_sigaction &&
                oldact->sa_sigaction != (my_sigaction_t) SIG_DFL &&
                oldact->sa_sigaction != (my_sigaction_t) SIG_IGN)
            {
                oldact->sa_sigaction(signo, info, context);
            }
        } else
#endif

but SA_SIGINFO is defined when included from kernel source.
So it fails to compile mozilla.

In /usr/include/sys/signal.h:
#if defined(_KERNEL)
#define SA_SIGINFO	0x0040
#endif /* _KERNEL */

Should I tweak configure script not to define HAVE_SIGINFO_T?
Or SA_SIGINFO should be defined in userland sources ?