Add ugly cast for our siginfo_t forward declaration.
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Jun 2013 15:03:05 +0000 (17:03 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Jun 2013 15:03:05 +0000 (17:03 +0200)
commita9948c5dbfe9a5a6bc4487386af4440c47eb7b3a
tree787fc4b29902b291dc192694bdfa2be16cceb988
parente67fb24c1386d723925b2096d7d707651aa75413
Add ugly cast for our siginfo_t forward declaration.

gcc complained:
/root/rpmbuild/BUILD/libi2ncommon-2.4/utils/signalfunc.cpp: In function ‘bool I2n::SystemTools::install_signal_handler(I2n::SystemTools::Signal, void (*)(int, siginfo*, void*))’:
/root/rpmbuild/BUILD/libi2ncommon-2.4/utils/signalfunc.cpp:370: error: invalid static_cast from type ‘void (*)(int, siginfo*, void*)’ to type ‘void (*)(int, siginfo_t*, void*)’

We can get away with casting function pointer types on x86:
http://stackoverflow.com/questions/559581/casting-a-function-pointer-to-another-type

Not sure if it's really worth to avoid including signal.h from signalfunc.hpp...
utils/signalfunc.cpp