NetBSD doesn't ship with <machine/npx.h>.
authorKamil Rytarowski <n54@gmx.com>
Sun, 31 Jan 2016 09:59:53 +0000 (10:59 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sun, 31 Jan 2016 14:03:46 +0000 (15:03 +0100)
commitc1e50f965c44c0a093921f741cd1bd7af84bda5d
treefaa61d4508587827be0f06d30803933ad44a3eed
parent7e1facef368a74a7a0c46e359378beae90af462b
NetBSD doesn't ship with <machine/npx.h>.

This is first step towards stopping to assume that HAVE_BSD_REGS_T implies
FreeBSD-style code. This breaks on NetBSD in several places.

Perhaps HAVE_BSD_REGS_T should be renamed to HAVE_FREEBSD_REGS_T.

Check headers with this fashion:
- FreeBSD requires <sys/types.h> for <machine/npx.h>
- FreeBSD requires <sys/cdefs.h> for <machine/reg.h>
- NetBSD doesn't need extra includes for <machine/reg.h>
- NetBSD requires <sys/param.h> before inclusion of <sys/cdefs.h>
src/pal/src/config.h.in
src/pal/src/configure.cmake
src/pal/src/thread/context.cpp