[LC++]Best way to get sigaction header code included?

Dr Mark H Phillips mark at austrics.com.au
Tue Feb 18 15:13:01 UTC 2003


Hi,

Torsten showed me how the use of sigaction() rather than signal()
could be used to solve a problem I was having.  This seems to work,
but I'm having difficulty knowing the best way to ensure the sigaction
code is included.

Doing 
  #include <signal.h>
doesn't automatically call in the sigaction code.  On Solaris it seems
I need to compile using a "-D__EXTENSIONS__" flag added.  On Linux
I still haven't worked out how to do it.



More information about the tuxCPProgramming mailing list