In message <[EMAIL PROTECTED]>, "David O'Brien" writes:
>When compiling the `dict' port, one gets:
>
> In file included from /usr/include/machine/signal.h:54,
> from /usr/include/sys/signal.h:178,
> from /usr/include/signal.h:44,
> from dict.h:33,
> from clientparse.y:25:
> /usr/include/machine/trap.h:105: warning: `T_USER' redefined
>
>This seems very wrong. Can't we rename "T_USER" in the kernel to
>"_T_USER", or wrap it in _KERNEL? The comment in machine/signal.h(x86)
>says:
>
> #include <machine/trap.h> /* codes for SIGILL, SIGFPE */
>
>but does that mean we must expose the entire contents of trap.h to
>userland? The problem is T_ is very common in lex source.
We most certainly shouldn't. Everything but the needed bits should
be #ifdef KERNEL.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message