profiler: Don't assume layout of struct sigaction
This commit fixes a build failure on mips* which has an unusual layout of struct sigaction where the first field is sa_flags instead of the usual sa_handler/sa_sigaction union.
This commit fixes a build failure on mips* which has an unusual layout of struct sigaction where the first field is sa_flags instead of the usual sa_handler/sa_sigaction union.