Thread View: comp.bugs.4bsd
1 messages
1 total messages
Started by Jonathan Stone
Thu, 09 May 1991 07:06
Reno /usr/include/signal.h bad for ANSI compilers
Author: Jonathan Stone
Date: Thu, 09 May 1991 07:06
Date: Thu, 09 May 1991 07:06
31 lines
1688 bytes
1688 bytes
Symptom::
Builds of the X window system fail on 4.3-Reno when using gcc,
with many error messages about a parse error in line 209 of
/usr/include/signal.h.
Bug::
/usr/include/signal.h references the type pid_t when __STDC__ is
defined, but does not define this type anywhere, or #include a
definition of it.
Fix::
Make /usr/include/signal.h (really /sys/sys/signal.h) include
the definition of pid_t from <sys/types.h> when __STDC__ is
defined (and perhaps when it's not, depending on taste).
The following patch does this, albeit in questionable style.
This may or may not be appropriate when compiling the kernel.
Subject: Reno /usr/include/signal.h bad for ANSI compilers
*** /usr/src/sys/sys/signal.h.dist Sun Jul 29 06:55:41 1990
--- /usr/src/sys/sys/signal.h Thu May 9 15:58:04 1991
***************
*** 206,211 ****
--- 206,212 ----
#endif /* KERNEL */
#if __STDC__ || c_plusplus
+ #include <sys/types.h>
int kill(pid_t, int);
int sigaction(int, const struct sigaction *, struct sigaction *);
int sigprocmask(int, const sigset_t *, sigset_t *);
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads