diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-08-22 21:43:21 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-08-22 21:43:21 +0000 |
commit | e21f96a811d9776f976751b01ac7975eeffcdeb2 (patch) | |
tree | 67fd60297b13b12d704966043c751b12801f2c71 /tests/sys | |
parent | 428925b5f20540449776e217fd08078b89177147 (diff) | |
download | src-e21f96a811d9776f976751b01ac7975eeffcdeb2.tar.gz src-e21f96a811d9776f976751b01ac7975eeffcdeb2.zip |
mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUM
machine/regnum.h ends up being included by sys/procfs.h and sys/ptrace.h via
machine/reg.h. Many of the regnum definitions are too short and too generic
to be exposing to any userland application including one of these two
headers. Moreover, these actively cause build failures in googletest
(template <typename T1 ...> expanding to template <typename 9 ...>).
Hide the definitions behind _KERNEL or _WANT_MIPS_REGNUM, and patch all of
the userland consumers to define as needed.
Discussed with: imp, jhb
Reviewed by: imp, jhb
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D21330
Notes
Notes:
svn path=/head/; revision=351409
Diffstat (limited to 'tests/sys')
-rw-r--r-- | tests/sys/kern/ptrace_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c index 977dcb5aaaa3..6ac3ed6243bb 100644 --- a/tests/sys/kern/ptrace_test.c +++ b/tests/sys/kern/ptrace_test.c @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include <sys/time.h> #include <sys/procctl.h> #include <sys/procdesc.h> +#define _WANT_MIPS_REGNUM #include <sys/ptrace.h> #include <sys/queue.h> #include <sys/runq.h> |