James Turner <[email protected]> writes: > After taking some time and looking at the different signal headers on > OpenBSD only #include <sys/signal.h> is required, no need to #include > <signal.h> which contains additional functions.
My man page (Linux) says to #include <signal.h>. I don't have any of my books nearby, nor do I have access to any of my older boxen (SunOS, HP/UX, etc.) but I suspect signal.h is the portable way to do it. I'm not sure what the motivation is for changing this. If the concern is size of the compiled binary, consider that including prototypes for additional functions shouldn't change anything about the output binary; it still links against libc6, and since #define is just a C preprocessor directive, unused #defines won't affect the binary either. Neale
