summaryrefslogtreecommitdiff
path: root/lib/libproc
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-08-22 21:43:21 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-08-22 21:43:21 +0000
commite21f96a811d9776f976751b01ac7975eeffcdeb2 (patch)
tree67fd60297b13b12d704966043c751b12801f2c71 /lib/libproc
parent428925b5f20540449776e217fd08078b89177147 (diff)
downloadsrc-test-e21f96a811d9776f976751b01ac7975eeffcdeb2.tar.gz
src-test-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 'lib/libproc')
-rw-r--r--lib/libproc/proc_regs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libproc/proc_regs.c b/lib/libproc/proc_regs.c
index 83988c2bac35f..da2cba18bbbdd 100644
--- a/lib/libproc/proc_regs.c
+++ b/lib/libproc/proc_regs.c
@@ -33,6 +33,7 @@
__FBSDID("$FreeBSD$");
#include <sys/types.h>
+#define _WANT_MIPS_REGNUM
#include <sys/ptrace.h>
#include <err.h>